On Oct 11, 6:17 pm, Dough Boy <[email protected]> wrote: > So a little setup...probably anywhere from a few to 500 or more > locations. > > I have polygon data that I can either place into a KML file or use the > API to add. I have done it both ways but I am looking for a little > guidance. > > The thing I like about the KML is that I can have one place that holds > everything, i.e. the polygon and the point. The problem is that the > polygon and the point are independent placemarks...click on one, it > doesn't hide the other. > > The think I like about the API version is that I can dynamically add > things (and control them). My only concern is the "lag" once I get > several on there...using one of the "combiners" is not an option. > > So my question is, are there any ways to use javascript to control > placemarks in a KML file on Google Maps? i.e. I could have an html > link that when you click on it it can show/hide the placemark? > > Also, I have set the "polygon" in the KML file to have no name and no > title, but when you click on it a blank bubble still pops up. Anyway > around this? > > Ideally I would use the KML file and just use JS to show hide the > items as needed.
You can look at geoxml3. I just added some polygon/polyline functionality to it, it still has a few rough edges (and at least one major bug) and I can see some efficiency improvements. http://www.geocodezip.com/geoxml3_test/geoxml3_test_polygon.html http://www.geocodezip.com/geoxml3_test/geoxml3_test_mtrmtrip.html -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
