dojo.connect(map, "onClick", dojo.hitch(this, function(evt) { if(dojo.byId("controllerStatus").innerHTML=="Current Action: Zoom Out"){ this.map.centerAndZoom(this.map.toMap(evt.screenPoint),this.map.getLevel()-1); } else if(dojo.byId("controllerStatus").innerHTML=="Current Action: Zoom In"){ this.map.centerAndZoom(this.map.toMap(evt.screenPoint),this.map.getLevel()+1); } else if(dojo.byId("controllerStatus").innerHTML=="Current Action: Move Map"){ this.map.centerAt(this.map.toMap(evt.screenPoint)); }else if(dojo.byId("controllerStatus").innerHTML==""||!dojo.byId("controllerStatus").innerHTML){ this.map.centerAndZoom(this.map.toMap(evt.screenPoint),this.map.getLevel()+1); this.map.centerAt(this.map.toMap(evt.screenPoint)); } }));
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.