How do i attach an onclick event to Placemarks specified in the KML file. Can event listeners be added to both google maps and google earth plugin? How would I go about this?
相关问题
- How do you change the color of the dotted line on
- Stop child process when parent process stops
- Fire resize event once not based on timing
- Java Instant.parse on Date java 8
- C# CS0079 Event Handling Compile Errors
相关文章
- What does it means in C# : using -= operator by ev
- How are custom broadcast events implemented in Jav
- Updating a map marker in android
- Avoiding “Sorry, we have no imagery here” with Goo
- Custom Marker performance iOS, crash with result “
- Google Map Gradient Polylines for Android?
- Angular 6 - @types/googlemaps/index.d.ts' is n
- Programming a touch screen application with SWING
In the Google Earth plugin...
In Google Maps API
Seemingly the onlick event is wrapped up when the kml loads (GMaps v3, kml with Placemarks) Any Placemark references to "BallonStyle" bundled in the same kml file causes these to replace the default popup - and you can achieve a lot with them.
These are the kml elements supported by Gmaps v3 http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html
If your question is how to intercept that onlick event, then I am sorry I do not know how you can achieve that.