Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!pushHandle)
- var pushHandle = GEvent.addListener(map, "click",function(overlay,point){
- marker = new GMarker(point,polymarker);
- map.addOverlay(marker);
- pgMarks.push(marker);
- pgArray.push(new GLatLng(point.y(),point.x()));
- if((document.getElementById("FinishPolyButton").disabled) &&
- (pgArray.length>1))
- document.getElemntById("FinishPolyButton").disabled=false;
- });
- ##
- if(!pushHandle){
- var pushHandle = GEvent.addListener(map, "click", function(overlay,point){
- marker = new GMarker(point, polymarker);
- map.addOverlay(marker);
- pgMarks.push(marker);
- pgArray.push(new GLatLng(point.y,point.x));
- if(document.getElementById("FinishPolyButton").disabled && pgArray.length > 1)
- document.getElemntById("FinishPolyButton").disabled = false;
- });
- }
Add Comment
Please, Sign In to add comment