Drawing a rectangle or circle when zoomed out more than 360 creates a bi-sected rect.

1896
3
11-15-2013 07:24 AM
stevemclaughlin
New Contributor III
Open up the 'Use the DrawTool' example at
https://developers.arcgis.com/en/flex/sample-code/use-the-drawtool.htm

zoom out so you see two americas. (so when you draw something it appears twice)
Choose the rectangle tool, draw a rectangle from Australia to Argentina.  A rectangle will be drawn with a vertical line about 1/4 of the way in.  If you were able to edit this, the bounding box would include the right-half of the image on the left and the left-half of the image on your right.

So when you edit the drawn figure, it behaves as two parts.

thanks,
steve
I'm using esri 3.5 api, same problem in 3.1 api.
is there a place to file bugs?  anyone else reproduce this?
Tags (2)
0 Kudos
3 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Steve,

You can set the <esri:map wrapAround180="false"> if you don't want to see the around map.
I don't think this relate to a bug.
0 Kudos
stevemclaughlin
New Contributor III
I need to have wrapAround180='true', and be able to see the entire pacific ocean,
so drawing a circle drawn over the pacific ocean and having it split in two is a bug for me.
Do you get the same results?
thanks,
steve

Hi Steve,

You can set the <esri:map wrapAround180="false"> if you don't want to see the around map.
I don't think this relate to a bug.
0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Steve,

I think it is not a bug. Because I found a method called normlizeCentralMeridian on Flex API reference:
https://developers.arcgis.com/en/flex/api-reference/index.html?com/esri/ags/utils/GeometryUtil.html&...

What normalizeCentralMeridianOfGeometry does?

If the geometry is outside -180 and +180 then it cuts the geometry into parts and folds into -180 and +180. You do not need to USE this method if you are not intending to store these geometry in the geodatabase (either personal, file or see). If you just want to display them on the map then wrap around is enough.

Also, I found there is another thread related to this topic but it's Javascript, there is a walk around soltuion:
http://forums.arcgis.com/threads/35509-map-extent-bug-with-wraparound180?highlight=nim066689
0 Kudos