Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer
    
@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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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