Select to view content in your preferred language

wraparound180 causes wrong map extent

2043
0
11-16-2011 08:30 AM
TomAuer
Emerging Contributor
I've seen bugs (NIM066689, NIM066454) filed for this on older versions of the JavaScript API, but I can't find any references for the Flex API.

If I pan right (east) from the prime meridian to an area of interest, I get this extent:

Extent[xmin=5981425.468412121,ymin=-1820633.600114658,xmax=16499160.560449574,ymax=3814915.621293318,SpatialReference[102100]]

If I pan left (west) from the prime meridian to the same area of interest, I get this extent:

Extent[xmin=-33782797.01145731,ymin=-1812093.4646948539,xmax=-23265061.91941986,ymax=3823455.756713123,SpatialReference[102100]]

...which is way, way, way wrong.

I'm filtering a list of layers by current extent, so I need this to work.

I saw some internal workarounds for JavaScript (http://forums.arcgis.com/threads/35509-Map-Extent-bug-with-wrapAround180?highlight=NIM066689), is there anything similar for Flex?

Thanks!
Tom
Tags (2)
0 Kudos
0 Replies