|
POST
|
Here's a snippet that shows how to access the layer properties- in order to access all the information you'll need to wait until the layer is loaded.
dojo.connect(operationalLayer,"onLoad",function(){
console.log(operationalLayer.version);
console.log(operationalLayer.layerInfos);
console.log(operationalLayer.layerInfos[0].name);
});
... View more
03-10-2011
05:27 AM
|
0
|
0
|
1836
|
|
POST
|
Version 2.2 of the ArcGIS API for JavaScript was released yesterday. Check out the post on the ArcGIS Server blog for more details.
... View more
03-03-2011
05:53 AM
|
0
|
8
|
2209
|
|
POST
|
The following sample in the developer help shows how to use attribute information in a hyperlink: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/fl_infowindow.html
... View more
02-10-2011
09:32 AM
|
0
|
0
|
1294
|
|
POST
|
You can use the esri.arcgis.utils.createMap method to add an item from ArcGIS.com to your application. This method requires the web map id from ArcGIS.com. There are a few samples in the help that show how to work with items from ArcGIS.com http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_fullmaplayout.html
... View more
02-03-2011
07:31 AM
|
0
|
0
|
729
|
|
POST
|
Most of the API's functionality should work well on Android. You can test this out by navigating to the help site on your Android device. If you go to http://links.esri.com/javascript from a mobile device you'll see a mobile version of the samples page so you can test the samples out on your device.
... View more
02-03-2011
07:26 AM
|
0
|
0
|
504
|
|
POST
|
The identify task allows you to specify a tolerance but the query task does not. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifytask.htm If you want to use the query task to query points you'll have to generate a tolerance. This blog post has some sample code that does this: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/01/15/Querying-points-and-lines-on-click-with-the-ArcGIS-JavaScript-API.aspx
... View more
02-01-2011
05:08 PM
|
0
|
0
|
417
|
|
POST
|
It looks like there may be some issues displaying VML after applying the security update. Here's a forum thread from Internet Explorer Tech Center regarding this issue: http://social.technet.microsoft.com/Forums/en/ieitpropriorver/thread/f3cf7105-fa1b-40ed-8462-111d86757092 If you are using McAfee virus software see here for information: https://kc.mcafee.com/corporate/index?elq_mid=4718&elq_cid=372908&page=content&id=KB70810
... View more
01-18-2011
08:04 AM
|
0
|
0
|
564
|
|
POST
|
Here are a few links that might help. This info is from the rest doc: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/mapserver.html#response Support for time-aware map services was added at 10. If the map supports quering and exporting maps based on time, the response will include a timeInfo property which includes information such as the map's time extent and the map's native time reference. However, note that the REST API always encodes time in UTC (milliseconds from epoch). We also have some information on working with time in the JS API 'Working with time-aware layers' help doc: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_temporal.htm
... View more
01-14-2011
06:08 AM
|
0
|
0
|
3423
|
|
POST
|
Mark - I took a look at your code on the other thread and it looks fine and works with sample service time enabled layers. If you view your service in the services directory and click the JavaScript link does the service display?
... View more
01-14-2011
06:01 AM
|
0
|
0
|
1059
|
|
POST
|
No you don't have to use ArcGIS.com, its just a really easy way to build a map that you plan on embedding into an existing web page.
... View more
01-12-2011
06:21 AM
|
0
|
0
|
4033
|
|
POST
|
Can you post your code? Perhaps there's something in the code that is causing an issue.
... View more
01-12-2011
06:18 AM
|
0
|
0
|
1321
|
|
POST
|
ArcGIS.com makes it easy to build a map to embed in an existing web site, here's a link to a help topic with instructions: http://help.arcgis.com/en/arcgisonline/help/index.html#//010q00000046000000.htm
... View more
01-11-2011
01:23 PM
|
0
|
0
|
4033
|
|
POST
|
I tested with both msd and mxd and can't reproduce but I'll keep researching this.
... View more
01-11-2011
07:02 AM
|
0
|
0
|
3789
|
|
POST
|
I have seen similar issues if I have the 'Enable time on map' button on ArcMap's Time Slider window pressed. The link below is to the server help, can you check your map document in ArcMap and see if the Enable Time on Map button on the Time Slider window is pressed? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005z0000000z000000.htm
... View more
01-11-2011
07:01 AM
|
0
|
0
|
1321
|
|
POST
|
One option might be to do something like this:
<script type="text/javascript">
dojo.require('esri.layers.FeatureLayer');
var baseURL;
var map;
function init() {
var initExtent = new esri.geometry.Extent({"xmin":-8590965,"ymin":4695877,"xmax":-8553434,"ymax":4711164,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{extent:initExtent});
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(basemap);
baseURL = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer";
esri.request({
url:baseURL,
content:{f:"json"},
callbackParamName:"callback",
load:addLayers,
error:esriConfig.defaults.io.errorHandler
});
}
function addLayers(response,args){
dojo.forEach(response.layers,function(layer){
var featureLayer = new esri.layers.FeatureLayer(baseURL + "/" + layer.id,{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayer(featureLayer);
});
}
dojo.addOnLoad(init);
</script>
... View more
01-07-2011
02:54 PM
|
0
|
0
|
690
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-31-2026 08:27 AM | |
| 1 | 03-26-2026 09:07 AM | |
| 1 | 03-26-2026 10:11 AM | |
| 1 | 03-24-2026 02:23 PM | |
| 1 | 03-17-2026 02:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|