On Aug 11, 4:52 pm, Doug <[email protected]> wrote: > Here's a link to my data: > http://www.uga.edu/marex/GoogleMaps/Testing2/index.html > > When the webpage first opens, my country KML file registers properly > with the Google Map in the background. But the cities KML file does > not. The city points are all shifted to the north. > > WHY ARE CITIES LIKE THIS AND WHAT DO I HAVE TO DO SO THAT THEY ARE > ALWAYS REGISTERED PROPERLY AGAINST THE BACKGROUND MAP NO MATTER WHAT > THE MAP SCALE?
In Google Earth, the icons are anchored at the centre-point by default. Your blobs are drawn at the centre-point of the icon image, so it looks right in Earth. For the *map*, GGeoXml is taking your 32x32 icon and anchoring it using the point at the centre-bottom (where a normal Google "pin" would be anchored), so your blobs are 16px north of the anchor-point. I would look at the <hotSpot> element of <IconStyle> so you explicitly define that the anchor-point of your icon is in the centre of the image. That should tell GGeoXml what you're expecting. http://code.google.com/apis/kml/documentation/kmlreference.html#iconstyle -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
