|
POST
|
Assuming you're working with a dynamic map service, you want setVisibleLayers(): http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setVisibleLayers
... View more
07-08-2010
08:21 AM
|
0
|
0
|
672
|
|
POST
|
If you use a query task, you get field aliases back with your query result. If you're stuck using identify, can you specify your user-friendly names in your info template? Otherwise, I think you're going to have to send off an additional request to get the layer info from the map service, build a field_name: field_alias object and then use the aliases in your info window content. I don't see a way to access field aliases from an identify result. Maybe someone else knows...
... View more
07-07-2010
01:52 PM
|
0
|
0
|
3214
|
|
POST
|
Ah, OK. I think dynamic service layers can be reprojected on the fly because the the reprojection is done on the server (by the SOC process I assume). The JS API isn't actually doing the reprojecting...it's just sending the request to the map service with a specific SRID for the output image.
... View more
07-07-2010
10:04 AM
|
0
|
0
|
1074
|
|
POST
|
I've always made sure the spatial reference of my graphics matches that of my basemap. I'm not sure if you can actually mismatch the two. Why not use esri.geometry.geographicToWebMercator(geometry) to transform your graphic's geometry to match your base map? Also, I think your x,y coordinates are flipped if that point is supposed to be in the US. I'm sure you already know this but "lat, long" is actually "y, x."
... View more
07-07-2010
09:52 AM
|
0
|
0
|
1074
|
|
POST
|
Are you specifying callback functions for callback, statusCallback and errback? Sample code would be helpful... http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geoprocessor.htm#submitJob
... View more
07-06-2010
10:57 AM
|
0
|
0
|
1419
|
|
POST
|
The easiest way would be to use the JS API's feature layer and applyEdits(): http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm#applyEdits You could hit the REST endpoint directly to insert your features but why reinvent the wheel?
... View more
07-06-2010
10:52 AM
|
0
|
0
|
708
|
|
POST
|
If you're using 2.0, Feature Layers support selections: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_selectfeatures.html
... View more
07-01-2010
10:11 AM
|
0
|
0
|
775
|
|
POST
|
You can, but it's kind of hacky and dependent on what is supported by the underlying data source. I would still format the date with JavaScript.
... View more
07-01-2010
10:03 AM
|
0
|
0
|
1225
|
|
POST
|
I think you'll have to add each layer you want to query/make selections against as a feature layer. If these layers happen to be in the same map service you're using as a base map, use setVisibleLayers() to exclude them before you add your dynamic map service layer to your map. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setVisibleLayers
... View more
06-30-2010
05:52 PM
|
0
|
0
|
595
|
|
POST
|
Congrats on the release! Now, if the customer care portal would just show me the 10 final download...
... View more
06-29-2010
10:13 AM
|
0
|
0
|
521
|
|
POST
|
Hmm...do you have dojo.require("dijit.Tooltip"); in your JavaScript?
... View more
06-09-2010
08:02 AM
|
0
|
0
|
847
|
|
POST
|
In your JavaScript: dojo.require("dijit.Tooltip"); In your mark up: <div dojoType="dijit.form.Button" id="zoomprev" iconClass="zoomprevIcon" onClick="navToolbar.zoomToPrevExtent();">Prev Extent</div>
<span id="zoomprev_tt" dojoType="dijit.Tooltip" connectId="zoomprev">I show up on hover!</span>
<div dojoType="dijit.form.Button" id="zoomnext" iconClass="zoomnextIcon" onClick="navToolbar.zoomToNextExtent();">Next Extent</div>
<span id="zoomnext_tt" dojoType="dijit.Tooltip" connectId="zoomnext">Me too!</span>
... View more
06-08-2010
03:28 PM
|
0
|
0
|
847
|
| 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
|