Hi all,
Hope you''re well. I''m back to the list because I have a
problem in a new
project.
I would like to use setInfoDiv to display a text/html into a div when a
marker is clicked.
<CODE>
mk.setInfoDiv("<p>blablabla</p>", "informa");
.
.
<div id="informa"></div>
</CODE>
The Div is displayed, but the content ("blablabla") is not passed to
the
Div, the element is empty.
Looking at mxn.googlev3.core.js there is no trace of InfoDiv, only
InfoBubble:
<CODE>
if (this.infoBubble) {
var event_action = "click";
if (this.hover) {
event_action = "mouseover";
}
google.maps.event.addListener(marker, event_action, function() {
marker.mapstraction_marker.openBubble();
});
}
</CODE>
But if one look at mxn.google.core.js you could find the following:
<CODE>
if (this.infoDiv) {
if (this.hover) {
event_action = "mouseover";
}
else {
event_action = "click";
}
GEvent.addListener(gmarker, event_action, function() {
document.getElementById(me.div).innerHTML = me.infoDiv;
});
}
</CODE>
Long text for a short question: is InfoDiv (setInfoDiv) implemented with
googlev3? If yes, where is my mistake in the code at the top of my post?
Many help for any advice.
Warm regards,
Mauro
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120706/5c2af3c2/attachment.htm>