Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Currently I am using ArcGIS JS API ver 3.3/3.5 in my application.

I want to restrict the basemap for US only .For example one can use default navigation features like zoom in, zoom out for the US Country only.

Trying following things:

1.I have set the US extent code in my application but when I zoom out then I can see the whole world map I want to restrict it to certain extent only

2.Going through this question Restrict pan and zoom in ArcGIS Javascript API?

3.Restricting the streets base map using this question but unable to restricting the map How do I use my own basemap with Javascript API?

4.I am using this sample map in my application.

Any help regarding this will be great!!!

Thanks in advance !!!

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Here is an example of one way to do this: http://jsfiddle.net/gh/gist/library/pure/6050806/

share|improve this answer
    
Thanks for the reply. I will check and let you know. thanks once again : ) –  Sunil Jul 22 '13 at 4:04
    
Its working fine.. thanks a lot : ) –  Sunil Jul 22 '13 at 6:22
    
No problem, my pleasure! –  CLJ Jul 22 '13 at 12:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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