However, if I use the identify "SELECT" button after zooming to a grid row I can no longer zoom to another grid row and the "zoom in and out" functions suffer.
I know I have a problem with the //identify portion function onDrawEnd(extent){ toolBar.deactivate(); executeIdentifyTask(extent); } and the onClick handler. I have tried changing the onDrawEnd references to onClick but it didn't work. Perhaps I need to do away with the "SELECT" function altogether? What would be the best way?
//identify portion function onDrawEnd(extent){ toolBar.deactivate(); executeIdentifyTask(extent); }
var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xyz/ArcGIS/rest/services/Hillshade/MapServer"); map.addLayer(dynamicMapServiceLayer); var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xyz/ArcGIS/rest/services/WaterBodies_WebMercatorAux/MapServer",{"opacity":0.9}); map.addLayer(dynamicMapServiceLayer);
dojo.connect(map, 'onLoad', function(theMap) { //resize the map when the browser resizes dojo.connect(dijit.byId('map'), 'resize', map,map.resize); }); dojo.connect(map,"onLoad",mapReady);
function onDrawEnd(extent){ toolBar.deactivate(); executeIdentifyTask(extent);
clickHandler = dojo.connect(map, "onClick", executeIdentifyTask);
function executeIdentifyTask(geom) { identifyParams.geometry = geom;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.