Loading KML on Google Maps API v3

1,717 views
Skip to first unread message

Michael

unread,
Jun 9, 2009, 12:05:45 PM6/9/09
to Google Maps JavaScript API v3
I am using Google Maps API v3 now and I wondering how is the script
for loading kml as it was done using GGeoXml on v2.

Any help would be highly appreciated.

Thank you.

bratliff

unread,
Jun 9, 2009, 3:40:29 PM6/9/09
to Google Maps JavaScript API v3
GGeoXML uses GTileLayerOverlay to display (non-clickable) polys in
v2. An equivalent is not yet available in v3. For now, markers &
infowindows are available.

You could implement your own OverlayView class. The demo gallery may
be useful if you can filter out the non-essential elements. The
documentation does not provide a simple OverlayView example.

String

unread,
Jun 9, 2009, 4:36:22 PM6/9/09
to Google Maps JavaScript API v3
On Jun 9, 5:05 pm, Michael <ccc3...@gmail.com> wrote:

> I am using Google Maps API v3 now and I wondering how is the script
> for loading kml as it was done using GGeoXml on v2.

I've created an open-source module that parses KML for v3; you can
find details at http://code.google.com/p/geoxml3/. You're welcome to
use it.

As Bratliff said, the current limitations of v3 mean that things like
polylines aren't supported, but markers and ground overlays are.
Please report any bugs you find, the module isn't extensively tested
yet.

String
Reply all
Reply to author
Forward
0 new messages