Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DrawPoly()
- {
- //Starts the initial polygon drawing
- if(addPoly!=undefined){
- map.removeOverlay(addPoly);
- addPoly = undefined;
- }
- document.getElementByID("Submit").disabled = false;
- document.getElementById("StartPolyButton").disabled = true;
- //var pclick = GEvent.addListener(map, "click", mapClick);
- 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