@@ 677-683 (lines=7) @@ | ||
674 | ||
675 | '; |
|
676 | ||
677 | if ($polygon['onclick'] != "") { |
|
678 | $polygon_output .= ' |
|
679 | google.maps.event.addListener(polygon_'.count($this->polygons).', "click", function() { |
|
680 | '.$polygon['onclick'].' |
|
681 | }); |
|
682 | '; |
|
683 | } |
|
684 | if ($polygon['ondblclick'] != "") { |
|
685 | $polygon_output .= ' |
|
686 | google.maps.event.addListener(polygon_'.count($this->polygons).', "dblclick", function() { |
|
@@ 684-690 (lines=7) @@ | ||
681 | }); |
|
682 | '; |
|
683 | } |
|
684 | if ($polygon['ondblclick'] != "") { |
|
685 | $polygon_output .= ' |
|
686 | google.maps.event.addListener(polygon_'.count($this->polygons).', "dblclick", function() { |
|
687 | '.$polygon['ondblclick'].' |
|
688 | }); |
|
689 | '; |
|
690 | } |
|
691 | if ($polygon['onmousedown'] != "") { |
|
692 | $polygon_output .= ' |
|
693 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mousedown", function() { |
|
@@ 691-697 (lines=7) @@ | ||
688 | }); |
|
689 | '; |
|
690 | } |
|
691 | if ($polygon['onmousedown'] != "") { |
|
692 | $polygon_output .= ' |
|
693 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mousedown", function() { |
|
694 | '.$polygon['onmousedown'].' |
|
695 | }); |
|
696 | '; |
|
697 | } |
|
698 | if ($polygon['onmousemove'] != "") { |
|
699 | $polygon_output .= ' |
|
700 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mousemove", function() { |
|
@@ 698-704 (lines=7) @@ | ||
695 | }); |
|
696 | '; |
|
697 | } |
|
698 | if ($polygon['onmousemove'] != "") { |
|
699 | $polygon_output .= ' |
|
700 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mousemove", function() { |
|
701 | '.$polygon['onmousemove'].' |
|
702 | }); |
|
703 | '; |
|
704 | } |
|
705 | if ($polygon['onmouseout'] != "") { |
|
706 | $polygon_output .= ' |
|
707 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseout", function() { |
|
@@ 705-711 (lines=7) @@ | ||
702 | }); |
|
703 | '; |
|
704 | } |
|
705 | if ($polygon['onmouseout'] != "") { |
|
706 | $polygon_output .= ' |
|
707 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseout", function() { |
|
708 | '.$polygon['onmouseout'].' |
|
709 | }); |
|
710 | '; |
|
711 | } |
|
712 | if ($polygon['onmouseover'] != "") { |
|
713 | $polygon_output .= ' |
|
714 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseover", function() { |
|
@@ 712-718 (lines=7) @@ | ||
709 | }); |
|
710 | '; |
|
711 | } |
|
712 | if ($polygon['onmouseover'] != "") { |
|
713 | $polygon_output .= ' |
|
714 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseover", function() { |
|
715 | '.$polygon['onmouseover'].' |
|
716 | }); |
|
717 | '; |
|
718 | } |
|
719 | if ($polygon['onmouseup'] != "") { |
|
720 | $polygon_output .= ' |
|
721 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseup", function() { |
|
@@ 719-725 (lines=7) @@ | ||
716 | }); |
|
717 | '; |
|
718 | } |
|
719 | if ($polygon['onmouseup'] != "") { |
|
720 | $polygon_output .= ' |
|
721 | google.maps.event.addListener(polygon_'.count($this->polygons).', "mouseup", function() { |
|
722 | '.$polygon['onmouseup'].' |
|
723 | }); |
|
724 | '; |
|
725 | } |
|
726 | if ($polygon['onrightclick'] != "") { |
|
727 | $polygon_output .= ' |
|
728 | google.maps.event.addListener(polygon_'.count($this->polygons).', "rightclick", function() { |
|
@@ 726-732 (lines=7) @@ | ||
723 | }); |
|
724 | '; |
|
725 | } |
|
726 | if ($polygon['onrightclick'] != "") { |
|
727 | $polygon_output .= ' |
|
728 | google.maps.event.addListener(polygon_'.count($this->polygons).', "rightclick", function() { |
|
729 | '.$polygon['onrightclick'].' |
|
730 | }); |
|
731 | '; |
|
732 | } |
|
733 | ||
734 | array_push($this->polygons, $polygon_output); |
|
735 | } |