|
@@ 1573-1589 (lines=17) @@
|
| 1570 |
|
} |
| 1571 |
|
|
| 1572 |
|
if (count($this->drawingOnEdit)) { |
| 1573 |
|
if (isset($this->drawingOnEdit['polygon'])) { |
| 1574 |
|
$this->output_js_contents .= ' |
| 1575 |
|
if (newShape.type==google.maps.drawing.OverlayType.POLYGON) { |
| 1576 |
|
var newShapePaths = newShape.getPaths(); |
| 1577 |
|
for (var i=0; i<newShapePaths.length; i++) { |
| 1578 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "set_at", function(event) { |
| 1579 |
|
'.$this->drawingOnEdit['polygon'].' |
| 1580 |
|
}); |
| 1581 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "insert_at", function(event) { |
| 1582 |
|
'.$this->drawingOnEdit['polygon'].' |
| 1583 |
|
}); |
| 1584 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "remove_at", function(event) { |
| 1585 |
|
'.$this->drawingOnEdit['polygon'].' |
| 1586 |
|
}); |
| 1587 |
|
} |
| 1588 |
|
}'; |
| 1589 |
|
} |
| 1590 |
|
if (isset($this->drawingOnEdit['polyline'])) { |
| 1591 |
|
$this->output_js_contents .= ' |
| 1592 |
|
if (newShape.type==google.maps.drawing.OverlayType.POLYLINE) { |
|
@@ 1590-1606 (lines=17) @@
|
| 1587 |
|
} |
| 1588 |
|
}'; |
| 1589 |
|
} |
| 1590 |
|
if (isset($this->drawingOnEdit['polyline'])) { |
| 1591 |
|
$this->output_js_contents .= ' |
| 1592 |
|
if (newShape.type==google.maps.drawing.OverlayType.POLYLINE) { |
| 1593 |
|
var newShapePaths = newShape.getPaths(); |
| 1594 |
|
for (var i=0; i<newShapePaths.length; i++) { |
| 1595 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "set_at", function(event) { |
| 1596 |
|
'.$this->drawingOnEdit['polyline'].' |
| 1597 |
|
}); |
| 1598 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "insert_at", function(event) { |
| 1599 |
|
'.$this->drawingOnEdit['polyline'].' |
| 1600 |
|
}); |
| 1601 |
|
google.maps.event.addListener(newShapePaths.getAt(i), "remove_at", function(event) { |
| 1602 |
|
'.$this->drawingOnEdit['polyline'].' |
| 1603 |
|
}); |
| 1604 |
|
} |
| 1605 |
|
}'; |
| 1606 |
|
} |
| 1607 |
|
if (isset($this->drawingOnEdit['rectangle'])) { |
| 1608 |
|
$this->output_js_contents .= ' |
| 1609 |
|
if (newShape.type==google.maps.drawing.OverlayType.RECTANGLE) { |