how to get the mouse's offset(left and top on the maps) when i clicked the google maps.
- by zjm1126
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