I'm trying to render a KML layer (with timezones) in Google Maps API v3. The KML layer works fine in 3D (in Google Earth), but when I render it in 2D, the timezone lines that meet at the North Pole are spread out in a really weird way:

Google Maps rendering

Here is the correct rendering in 3D:

Google Earth rendering

How do I get fix that weird spread?


In Google Maps, a Mercator projection is used that cuts off around 84 North and South. Try densifying the lines (add vertices) up to where the cut-off is.

  • @MrKennedy: Thanks! How do I do that? – Maxim Zaslavsky Jul 29 '11 at 0:14
  • @Maxim, sorry, no idea! I only use ArcGIS (I work at Esri). In it, I would just edit the data and insert vertices, or maybe look at a densify tool. – mkennedy Jul 29 '11 at 14:16
  • You can create a polygon that stops at 84 North/South and clip it. Then the lines will not cross. But you will need two kmls one for GE and the other for GMAPS - it's a 3D projection on a 2D flat surface thing causing the issue. – Mapperz Jul 29 '11 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.