Graphics crossing International Date Line

1006
1
09-02-2016 11:38 AM
ChristinaKochan1
Occasional Contributor

I have my map set to WrapAround = true, but I can't get Graphics to cross the IDL. If I have a polyline whose points are [5,175] and [5,-175], instead of crossing the IDL it gets stretched across the whole Earth. I can set the second point to [5, 185] and it will display correctly, but then other parts of my application see that 185 as an invalid longitude. Is there anything I can set on the map or on the graphic to get it to do what I want it to do without having to convert back and forth between valid and invalid longitude values?

0 Kudos
1 Reply
AnttiKajanus1
Regular Contributor II

You should use NormalizeCentralMeridian utility when WrapAround is enabled.