|
POST
|
I tested all the layers in the service and they all fail on every other get request You may have encountered a bug in ArcGIS Server 10.1 SP1: http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&viewfull=1#post256794 This is a known issues with 10.1 SP1, and has been logged as the following bug: [ NIM086349 - Alternate Query (Get) requests fail in Version 10.1 SP1 ] I don't know when this is scheduled to be fixed, but if you contact Support you can be attached to the bug. You can also check the status here: http://support.esri.com/en/bugs/nimb...1/TklNMDg2MzQ5
... View more
04-04-2013
04:56 PM
|
0
|
0
|
3978
|
|
POST
|
Can you post your code too, or (better) a link to your live site?
... View more
04-04-2013
03:38 PM
|
0
|
0
|
1664
|
|
POST
|
I don't use VS but the good folks at StackOverflow have an answer: http://stackoverflow.com/questions/1627194/is-there-a-good-javascript-plugin-for-visual-studio
... View more
04-04-2013
02:58 PM
|
0
|
0
|
2522
|
|
POST
|
You may need to add that map as two separate dynamic layers, and specify the relevant visibleLayers for each dynamic layer. - create a dynamic layer for the polygon (eg, visibleLayers = [2]) and set its opacity to 0.6 - create a dynamic layer for the points, lines and annotations (eg, visibleLayers = [0,1,3])
... View more
04-04-2013
02:37 PM
|
0
|
0
|
1130
|
|
POST
|
I haven't looked into your entire code sample - in fact I stopped on the 3rd line:
myURL = "subStateURL";
queryTask = new esri.tasks.QueryTask(myURL);
myURL doesn't look like a valid URL for the query task - it should be an ArcGIS Server REST endpoint. Is subStateURL meant to be a variable (not a string)? If that doesn't help, can you step through your code in Firebug and let us know at which point it's failing? Steve
... View more
04-04-2013
02:17 PM
|
0
|
0
|
1442
|
|
POST
|
I'm thinking of the returnCountOnly, returnDistinctValues and returnIdsOnly options, for example. I'm not positive this answers your question, but I think that returnCountOnly is available as executeForCount while returnIdsOnly is available as executeForIds
... View more
04-03-2013
08:14 PM
|
0
|
0
|
821
|
|
POST
|
Just a tip, when you paste code in the forums, use the # option at the top right - this prevents the forum from stripping your formatting. I can't get to your buildings layer so it's hard to test, but your code looks right to me. Have you tried putting a debug breakpoint on lines 40 and 44 to see whether the show/hide code is firing? One question is why you need to run a query then add the graphics to the layer - why not just define the buildings layer as a standard feature layer? This may handle the number of graphics better. You could also try putting the query inside the map's onLoad event:
dojo.connect(map, "onLoad", function() {
var queryTask = new esri.tasks.QueryTask("https://maps.admin.umass.edu/arcgis/rest/services/umaFacilities/umaFacilitiesOperationalLayers/FeatureServer/2" );
var query = new esri.tasks.Query();
query.where = "1=1";
query.returnGeometry = true;
query.outFields = ["LONGNAME"];
queryTask.execute(query, addPointsToMap);
});
Sorry I can't help more, Steve
... View more
03-21-2013
05:48 PM
|
0
|
0
|
1466
|
|
POST
|
Any other clue? Not without seeing your code, or a link to your site Otherwise it could be.... anything 😉
... View more
03-21-2013
05:41 PM
|
0
|
0
|
1450
|
|
POST
|
The map has a displayGraphicsOnPan option, which you could try: When true, graphics are displayed during panning. When false, the graphics are turned off during pan movement. Setting to false may improve performance in Internet Explorer. The default is true. I'm not sure why your layer show/hide isn't working without seeing more of the code. Can you post the full extract if the above doesn't help? Cheers, Steve
... View more
03-20-2013
04:28 PM
|
0
|
0
|
1466
|
|
POST
|
User error. Although Firebug doesn't list .graphic as a property of evt, it's there if you type if manually.
... View more
03-18-2013
11:23 PM
|
0
|
0
|
726
|
|
POST
|
You could try using a queryTask instead of identify. You may need to run multiple queryTasks (one for each layer you wish to run against, ie http://atlas...../MapServer/6, http://atlas..../MapServer/10, etc) Brett Lord-Castillo put together a demo showing how to run multiple query tasks concurrently at http://jsfiddle.net/blordcastillo/mULcz/
... View more
03-18-2013
03:52 PM
|
0
|
0
|
1099
|
|
POST
|
I'd start with the Migrating to 3.x documentation to see some of the major changes. The main one is that version 3.x requires your application to be served via a web server, rather than being located on disk. eg, you should be accessing it via http://localhost/xxx rather than file://c:\temp\xxx
... View more
03-18-2013
03:48 PM
|
0
|
0
|
1450
|
|
POST
|
featureLayerpoint.graphics will give you a pointer to the features in that layer. See http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/graphics
... View more
03-18-2013
03:45 PM
|
0
|
0
|
989
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|