|
POST
|
You could manually define the LODs for your map. See my post here: http://forums.arcgis.com/threads/36441-Default-Zoom-Slider?p=122991&viewfull=1#post122991
... View more
09-20-2011
09:10 AM
|
0
|
0
|
852
|
|
POST
|
Is there away to see the raw json returned besides fiddler? You can tweak the URL sent to your service and see the JSON directly in the browser. For instance, the basic identify sample, when you click the map, issues a request like this: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer/identify?f=json&geometry={%22x%22%3A-9270185.452645523%2C%22y%22%3A5247230.008462553%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}&tolerance=3&returnGeometry=true&mapExtent={%22xmin%22%3A-9270630.93720096%2C%22ymin%22%3A5246864.543921095%2C%22xmax%22%3A-9269675.474347476%2C%22ymax%22%3A5247581.141061208%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}&imageDisplay=800%2C600%2C96&geometryType=esriGeometryPoint&sr=102100&layers=all%3A0%2C2&callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback If you change the f query string parameter to pjson and remove the callback stuff, you get this: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer/identify?f=pjson&geometry={%22x%22%3A-9270185.452645523%2C%22y%22%3A5247230.008462553%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}&tolerance=3&returnGeometry=true&mapExtent={%22xmin%22%3A-9270630.93720096%2C%22ymin%22%3A5246864.543921095%2C%22xmax%22%3A-9269675.474347476%2C%22ymax%22%3A5247581.141061208%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}&imageDisplay=800%2C600%2C96&geometryType=esriGeometryPoint&sr=102100&layers=all%3A0%2C2
... View more
09-09-2011
11:22 AM
|
0
|
0
|
1071
|
|
POST
|
Internally, for vector features, KMLLayers are made up of feature layers. Once your layer loads, you can use the getLayers() method to get to these feature layers (maximum of three feature layers per KML layer, one each for point, line and polygon features). Once you have the feature layers, you can set their opacity.
... View more
09-08-2011
09:54 AM
|
0
|
0
|
1571
|
|
POST
|
You're hosting the API yourself, correct? Do you see the same problem if you reference the copy of the API we host: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4
... View more
09-08-2011
07:18 AM
|
0
|
0
|
2254
|
|
POST
|
Can you post a simplified example that demonstrates what you're describing?
... View more
09-08-2011
07:16 AM
|
0
|
0
|
387
|
|
POST
|
My map and kml are in different projection system. i tried to use optional param but no change. Are you specifying outSR in the KMLLayer constructor? Your code should look something like this:
var kmlLayer = new esri.layers.KMLLayer(kUrl, {
outSR: new esri.SpatialReference({ wkid: 26912 })
});
... View more
09-07-2011
02:53 PM
|
0
|
0
|
3524
|
|
POST
|
What do you want to do? You can get the dojox.gfx.Shape using getDojoShape().
... View more
09-07-2011
02:40 PM
|
0
|
0
|
742
|
|
POST
|
The show info window immediately sample shows this.
... View more
09-01-2011
07:08 PM
|
0
|
0
|
2312
|
|
POST
|
Sorry, I don't know of any examples showing using the JS API to talk to WCF services. Check out esri.request to talk to your WCF services. It's a wrapper on dojo.io.script.get and dojo.xhrPost.
... View more
09-01-2011
07:52 AM
|
0
|
0
|
1096
|
|
POST
|
The JS API provides classes that streamline communication with the ArcGIS Server REST API. Using the JS API to talk to other REST endpoints/web services to do things you mentioned (identify, buffer, projecting data) is possible but you would be re-inventing many things that are already in the API. Unless you have specific needs not covered by the API, I would say you do not need any WCF components.
... View more
09-01-2011
05:38 AM
|
0
|
0
|
1096
|
|
POST
|
I think you're looking for the map's extent property.
... View more
08-31-2011
06:29 AM
|
0
|
0
|
606
|
|
POST
|
graphic.setAttributes takes a JS object as it's argument so you can do this by using a different syntax to create your object:
// create a new object
var attrs = {};
// create a property with the field to be updated
// and set the new property's value
attrs[theField] = theValue;
// or...
attrs['FirstName'] = 'Bob';
graphic.setAttributes(attrs);
... View more
08-30-2011
08:07 AM
|
0
|
0
|
802
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|