IDL (International Date Line)

Source: Internet
Author: User

When this (draw a polygon besides IDL on the map) occurs, the points for the Polygon on the East Side (I. e. USA) are captured with coordinates <-180 (I. e. I got things such as-252. 0201... for one of the Long coordinates ). this in turn throws an exception in contactserviceimpl because it expects points to be between-180 to 180.

As far as the issue itself, I have not found a solution for it. As
Matter of fact, it appears that it may be a known bug that some people
Are working towards a fix for. Here is an old Forum Thread about what
Appears to be the same issue: http://lists.osgeo.org/pipermail/openlayers-dev/2010-August/006360.html (sort by thread to see all 20 + messages regarding this issue). However, I don't see any resolution on the matter.

I also played with the wrapdateline field (http://dev.openlayers.org/releases/OpenLayers-2.12/doc/devdocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.wrapDateLine)
And it appears to do exactly what it says. When I set it to false on
The Google layer, it simply stops allowing the user to Pan continuously
In the longitudinal (horizontal) ction. It does not do anything in
Terms of providing polygon points that conform to the-180 to 180
Interval.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.