diff --git a/application/default/views/scripts/water/view.phtml b/application/default/views/scripts/water/view.phtml index 10c2c3dc..52c34e9d 100755 --- a/application/default/views/scripts/water/view.phtml +++ b/application/default/views/scripts/water/view.phtml @@ -249,7 +249,10 @@ function reportError(request) map.setCenter(new GLatLng(= ($md->south+$md->north)/2; ?>,= ($md->east+$md->west)/2; ?>), zoomlevel); map.setMapType(G_SATELLITE_MAP); map.setUIToDefault(); - +north==$md->south) : ?> + var marker=new GMarker(new GLatLng(= $md->north; ?>,= $md->east; ?>)); + map.addOverlay(marker); + var polygon=new GPolygon([ new GLatLng(= $md->north; ?>,= $md->west; ?>), new GLatLng(= $md->north; ?>,= $md->east; ?>), @@ -258,6 +261,7 @@ function reportError(request) new GLatLng(= $md->north; ?>,= $md->west; ?>) ],"#f33f00",5,1,"#ff0000",0.2); map.addOverlay(polygon); +