Guest User

Untitled

a guest
Apr 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. if(!pushHandle)
  2. var pushHandle = GEvent.addListener(map, "click",function(overlay,point){
  3. marker = new GMarker(point,polymarker);
  4. map.addOverlay(marker);
  5. pgMarks.push(marker);
  6. pgArray.push(new GLatLng(point.y(),point.x()));
  7. if((document.getElementById("FinishPolyButton").disabled) &&
  8. (pgArray.length>1))
  9. document.getElemntById("FinishPolyButton").disabled=false;
  10. });
  11.  
  12.  
  13. ##
  14.  
  15. if(!pushHandle){
  16. var pushHandle = GEvent.addListener(map, "click", function(overlay,point){
  17. marker = new GMarker(point, polymarker);
  18. map.addOverlay(marker);
  19. pgMarks.push(marker);
  20. pgArray.push(new GLatLng(point.y,point.x));
  21. if(document.getElementById("FinishPolyButton").disabled && pgArray.length > 1)
  22. document.getElemntById("FinishPolyButton").disabled = false;
  23. });
  24. }
Add Comment
Please, Sign In to add comment