Show tiles within a specific extent

4363
1
Jump to solution
07-05-2015 05:36 AM
roialgavish
New Contributor III

Hello,

I have a cached map server with a very large extent, I am building an app with the ArcGIS JavaScript api and I want to show only a specific tiles every time that the app Is loaded (as a result of the extent of another layer). I can't figure out how to do it.

I need something like the opposite of the setExclusionAreas() method.  

Any ideas?

0 Kudos
1 Solution

Accepted Solutions
JoshHevenor
Occasional Contributor II

setExclusionAreas is an array, so you can calculate 4 extents to exclude everything but your target area.

View solution in original post

1 Reply
JoshHevenor
Occasional Contributor II

setExclusionAreas is an array, so you can calculate 4 extents to exclude everything but your target area.