Holy Cow!!!It was the extent. Apparently the spatial reference needed to be set in the identify parameters. Everything worked once I added this line of code: identifyParams.spatialReference = new esri.SpatialReference({ wkid: 102100});Man, that was frustrating. Jeff, your response focused me on the extent and spatial reference. Have some points. Enjoy!
identifyParams.spatialReference = new esri.SpatialReference({ wkid: 102100});
It was the extent. Apparently the spatial reference needed to be set in the identify parameters. Everything worked once I added this line of code: identifyParams.spatialReference = new esri.SpatialReference({ wkid: 102100});
//Set initial extent and map projection to Web Mercator var initExtent = new esri.geometry.Extent(-13373700,4775288,-13310356,4828576, new esri.SpatialReference({wkid:102100})); //Set the map variable and assign it to the mapDiv box map = new esri.Map("mapDiv",{extent: initExtent, slider: true, nav: true });
//connects to Washoe County base layer service BaseLayersCarto = new esri.layers.ArcGISTiledMapServiceLayer("http://" + hostName + "/ArcGIS/rest/services/BaseLayersWebMercator/MapServer"); //connects to Washoe County aerial photography service ImageryLayers2 = new esri.layers.ArcGISTiledMapServiceLayer("http://" + hostName + "/ArcGIS/rest/services/ImageryWebMercator/MapServer", {visible:false}); //connects to Washoe County hillshade and topography service Topo = new esri.layers.ArcGISTiledMapServiceLayer("http://" + hostName + "/ArcGIS/rest/services/TopoWebMercator/MapServer", {visible:false}); //connects to Washoe County base layer service for draping over photography BaseLayersPhoto = new esri.layers.ArcGISTiledMapServiceLayer("http://" + hostName + "/ArcGIS/rest/services/BaseLayersTransparentWebMercator/MapServer", {visible:false}); //World base maps WorldStreets = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); WorldAerial = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer", {visible:false}); WorldTopo = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer", {visible:false});
I guess I need to review my code with a fine toothed comb to find out what is going on here. Any ideas you may have are greatly appreciated.
I am guessing that I must have some sort of listening action that is performed when zooming that is perhaps interfering with the query action which doesn't allow the map refresh to complete successfully. This is likely causing the coordinate extent to not update to the new map extent, therefore the coordinate readout lockups, and apparently it disables the map click listener so that the identify task will not execute properly.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.