@@ 955-961 (lines=7) @@ | ||
952 | var rectangle_'.count($this->rectangles).' = new google.maps.Rectangle(rectangleOptions); |
|
953 | '; |
|
954 | ||
955 | if ($rectangle['onclick'] != "") { |
|
956 | $rectangle_output .= ' |
|
957 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "click", function() { |
|
958 | '.$rectangle['onclick'].' |
|
959 | }); |
|
960 | '; |
|
961 | } |
|
962 | if ($rectangle['ondblclick'] != "") { |
|
963 | $rectangle_output .= ' |
|
964 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "dblclick", function() { |
|
@@ 962-968 (lines=7) @@ | ||
959 | }); |
|
960 | '; |
|
961 | } |
|
962 | if ($rectangle['ondblclick'] != "") { |
|
963 | $rectangle_output .= ' |
|
964 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "dblclick", function() { |
|
965 | '.$rectangle['ondblclick'].' |
|
966 | }); |
|
967 | '; |
|
968 | } |
|
969 | if ($rectangle['onmousedown'] != "") { |
|
970 | $rectangle_output .= ' |
|
971 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousedown", function() { |
|
@@ 969-975 (lines=7) @@ | ||
966 | }); |
|
967 | '; |
|
968 | } |
|
969 | if ($rectangle['onmousedown'] != "") { |
|
970 | $rectangle_output .= ' |
|
971 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousedown", function() { |
|
972 | '.$rectangle['onmousedown'].' |
|
973 | }); |
|
974 | '; |
|
975 | } |
|
976 | if ($rectangle['onmousemove'] != "") { |
|
977 | $rectangle_output .= ' |
|
978 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousemove", function() { |
|
@@ 976-982 (lines=7) @@ | ||
973 | }); |
|
974 | '; |
|
975 | } |
|
976 | if ($rectangle['onmousemove'] != "") { |
|
977 | $rectangle_output .= ' |
|
978 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mousemove", function() { |
|
979 | '.$rectangle['onmousemove'].' |
|
980 | }); |
|
981 | '; |
|
982 | } |
|
983 | if ($rectangle['onmouseout'] != "") { |
|
984 | $rectangle_output .= ' |
|
985 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseout", function() { |
|
@@ 983-989 (lines=7) @@ | ||
980 | }); |
|
981 | '; |
|
982 | } |
|
983 | if ($rectangle['onmouseout'] != "") { |
|
984 | $rectangle_output .= ' |
|
985 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseout", function() { |
|
986 | '.$rectangle['onmouseout'].' |
|
987 | }); |
|
988 | '; |
|
989 | } |
|
990 | if ($rectangle['onmouseover'] != "") { |
|
991 | $rectangle_output .= ' |
|
992 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseover", function() { |
|
@@ 990-996 (lines=7) @@ | ||
987 | }); |
|
988 | '; |
|
989 | } |
|
990 | if ($rectangle['onmouseover'] != "") { |
|
991 | $rectangle_output .= ' |
|
992 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseover", function() { |
|
993 | '.$rectangle['onmouseover'].' |
|
994 | }); |
|
995 | '; |
|
996 | } |
|
997 | if ($rectangle['onmouseup'] != "") { |
|
998 | $rectangle_output .= ' |
|
999 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseup", function() { |
|
@@ 997-1003 (lines=7) @@ | ||
994 | }); |
|
995 | '; |
|
996 | } |
|
997 | if ($rectangle['onmouseup'] != "") { |
|
998 | $rectangle_output .= ' |
|
999 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "mouseup", function() { |
|
1000 | '.$rectangle['onmouseup'].' |
|
1001 | }); |
|
1002 | '; |
|
1003 | } |
|
1004 | if ($rectangle['onrightclick'] != "") { |
|
1005 | $rectangle_output .= ' |
|
1006 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "rightclick", function() { |
|
@@ 1004-1010 (lines=7) @@ | ||
1001 | }); |
|
1002 | '; |
|
1003 | } |
|
1004 | if ($rectangle['onrightclick'] != "") { |
|
1005 | $rectangle_output .= ' |
|
1006 | google.maps.event.addListener(rectangle_'.count($this->rectangles).', "rightclick", function() { |
|
1007 | '.$rectangle['onrightclick'].' |
|
1008 | }); |
|
1009 | '; |
|
1010 | } |
|
1011 | ||
1012 | array_push($this->rectangles, $rectangle_output); |
|
1013 | } |