[Google Maps API v3] kml_overlay_click fires map_click_event

151 views
Skip to first unread message

pi5701

unread,
May 12, 2010, 2:02:49 AM5/12/10
to Google Maps JavaScript API v3
click on kml_overlay fires mapclick_event on my map

map:
http://www.mario-baldauf.org/API_v3/verortung/index.html

click on kml_icon on menubar left side
test the 2 links shown - click on marker or image

is this behavior intended by the team?

expected output:
click on kml_markers should not fire mapclick_event
(in my case: not place marker and open infowindow)


--
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

pi5701

unread,
May 12, 2010, 5:40:09 AM5/12/10
to Google Maps JavaScript API v3
deleted first post - nevertheless got an answer:

so this issue covers my question?
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2172&can=5&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars

again my question:
why not treat markers added by kml the same way as markers added the
'normal' [ new google.maps.Marker({opts}) ] way?

pi5701

unread,
May 15, 2010, 10:19:12 AM5/15/10
to Google Maps JavaScript API v3
added new example:
http://www.mario-baldauf.org/API_v3/verortung/files/kml/gbif_tlmf_1.kmz

load in google earth - ok

load in googlemap - mapclick event is fired on iconclick, content
extends infowindow, infowindow anchor is on bottom of icon (should be
top?)

load on my map here:
http://www.mario-baldauf.org/API_v3/verortung/index.html

1.click on kml_icon on menubar left side
2.click 'Los!'
3.click icon of kml -> marker with infowindow is added + icon
infowindow of kml is shown

:/

pi5701

unread,
May 19, 2010, 2:58:10 AM5/19/10
to Google Maps JavaScript API v3
anyone?

any word on when this is gonna be solved?
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2172&can=5&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars

what about adding more events than just click-event for kml layers?
http://code.google.com/intl/de-DE/apis/maps/documentation/v3/reference.html#KmlLayer


so we could load description in outer div on rightclick, mouseover aso
like:
google.maps.event.addListener(ctaLayer, 'mouseover',
function(kmlEvent) {
var text = kmlEvent.featureData.description;
showInDiv(text);
});
function showInDiv(text) {
var sidediv = document.getElementById('contentWindow');
sidediv.innerHTML = text;
Reply all
Reply to author
Forward
0 new messages