0

I have created a layer using "clip" tool in ArcMap.

enter image description here

I have another layer in TOC too. whichis the same area in "clip" Layer with more polygons.

enter image description here

In my web map application (javaScript API) Is there any way to set these layers in a way that when I zoom in I get more details like image2 and by zooming out I get polygons in image1.

Devdatta Tengshe
41.8k37 gold badges147 silver badges267 bronze badges
asked Nov 10, 2013 at 18:54

2 Answers 2

2

To change the displayed layer at different scales you should set the scale range. This can either be done on the source data before publishing to ArcGIS server with the layer properties> general> scale range option or can be done in code by setting the Max and Min scales of the layer using SetScaleRange

answered Nov 11, 2013 at 9:49
0

This is possible by using some custom code.

The Map has a Zoom start event, which fires when a user commences zooming. You can listen to this event in your code, and then change the layer in the map to show data from the appropriate service.

answered Nov 11, 2013 at 2:58

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.