how to get the mouse's offset(left and top on the maps) when i clicked the google maps.
Posted
by zjm1126
on Stack Overflow
See other posts from Stack Overflow
or by zjm1126
Published on 2010-03-13T01:25:35Z
Indexed on
2010/03/13
1:27 UTC
Read the original article
Hit count: 287
it would be like this :
<div id="map_canvas" style="width: 500px; height: 300px;float:left;"></div>
left:(<=300) top:(<=500)
i want to make a polyline when i clicked:
var polyline = new GPolyline([onePoint,twoPoint], "#ff0000", 5);
map.addOverlay(polyline);
thanks
© Stack Overflow or respective owner