Upcoming change to KML rendering

166 views
Skip to first unread message

Luke (Google Employee)

unread,
Jul 9, 2012, 3:53:00 AM7/9/12
to Google Maps JavaScript API v3
Hey everyone,

I would like to notify you of a change in KML rendering in Google
Maps. If you do not use KML with custom icons in the Google Maps API,
you can stop reading now.

Currently, the custom icons are located on the map so that the hotspot
(LatLng of the attached Point) is at the bottom-center of the icon, by
default. We will change this behavior: custom icons will be located so
that the hotspot is at the center of the icon. This will be done that
the KML parsers in Google Maps and Google Earth behave in the same
way.

This change is planned to be rolled out on mid July (or soon after).
If you use a KML IconStyle element, and rely on the hotspot being
located by default at the bottom center of the icon, it is recommended
that you update your KML to force the hotspot at the bottom center, by
adding the following in your KML's IconStyle element:
<hotSpot x="0.5" y="0" xunits="fraction" yunits="fraction"/>

Thanks!

- Luke
Google Maps API
Reply all
Reply to author
Forward
0 new messages