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)); } }));
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.