Reputation: 1
I have created a google maps dealer locator. All (55) dealers are saved into a KML file which i load into my google maps:
See: http://paste2.org/p/2248187
I have a search function that finds the closest dealers from your location. The results get printed in a list. Note that this list is outside the Google Maps, in a html sidebar. When I click on the nearest dealer I would like to open the infowindow of that dealer/placemark by using it's ID.
So in short, click on a button outside the google map and an infowindow should open inside the google map.
I have googled for this a lot, but couldn't find anything about opening KML placemark infowindows.
it should be as simple like: http://paste2.org/p/2248193
Any ideas?
Upvotes: 0
Views: 1097
Reputation: 161404
That functionality is not available with KmlLayer (at least not now).
Either use a third party KML parser like geoxml3 or geoxml-v3 or import your KML into FusionTables and use that.
Upvotes: 1