I’m working on a little Google maps mashup and I could not find anywhere a way to efficiently manage multiple markers coming from external kml files (think my maps kml files). Of course you can render them easily with GGeoXml, but then you cannot use MarkerManager. Of course you can use MarkerManager with KML files (trough EGeoXml and others), but you are limited to local files, due to the infamous same origin policy of ajax requests.
What to do?? Write my own library: http://wiki.github.com/bigonazzi/kmlmmanager get it while its hot!
I don’t know exactly how GGeoXml works its magic (iframe?) but instead of reinventing the wheel© I decided to piggyback GGeoXml… at least until I find a better way to do it!
Note: please be gentle, I’m pretty new to Javascript



Allison 3:06 on 2 Aprile 2009 Permalink |
Is it possible to use this with kml line data? I would like to be able to have 1 kml file and then be able to search through these routes with two drop down menus. One for the starting point and one drop down menu for the ending point.
bigonazzi 6:01 on 2 Aprile 2009 Permalink |
Internally it uses the google kml parser so it should work ok with any kml file. I’ve only used with markers tough. If you try let me know how it goes.