1

I am new to ArcGIS JavaScript API and would like some help. I have a scenario where a user has to draw a graphic, mainly a polyline and some points on a map. To avoid confusion I want to limit the user to zoom in to street level prior to start drawing.

What I am trying to achieve here is when the user clicks on the locality he/she wants to draw on, on the click even the map zooms in to street layers.

I have been looking around but can't find a way to do it.

0

sounds like you should be listening to the map's 'click' event and calling a method like centerAndZoom(), passing in the mapPoint that is returned by the event and whatever zoom level you think would be appropriate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.