Dear All,
I have a function as below. The problem when is "endLine"
I want a pop-up window for the user to key in relevant information.I
have tried putting this poly.openInfoWindowHtml(html); and also
triggering an OnClick function both doesn't give the pop info window?
Any suggestions?
function startDrawing(poly, name, onUpdate, color) {
map.addOverlay(poly);
poly.enableDrawing(options);
poly.disableEditing({onEvent: "mouseout"});
GEvent.addListener(poly,
"endline", function() {
select("hand_b");
var htmlString = "<font
color=\"#6387A5\" size=\"1\" face=
\"Verdana, Arial, Helvetica, sans-serif\">" +
"Vehicle ID : <br/>"+
"Location : <br/>"+
"Speed : <br/>"+
"Bearing : <br/>"+
"Date Timer : <br/>"+
"</font>";
poly.openInfoWindowHtml(htmlString);
/*GEvent.trigger(poly,"click");
GEvent.addListener(poly,
"click", function()
{
var htmlString = "<font color=\"#6387A5\" size=\"1\"
face=\"Verdana, Arial, Helvetica, sans-serif\">" +
"Vehicle ID : <br/>"+
"Location : <br/>"+
"Speed : <br/>"+
"Bearing : <br/>"+
"Date Timer : <br/>"+
"</font>";
poly.openInfoWindowHtml(htmlString);
}
)*/
//map.removeOverlay(poly);
});
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en.