From 9532f04a037bf158b430c9a81d7b5aa7b818ee8e Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 29 Jun 2010 09:25:19 +0000 Subject: [PATCH] add marker for point data in metadata view page --- application/default/views/scripts/water/view.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(south+$md->north)/2; ?>,east+$md->west)/2; ?>), zoomlevel); map.setMapType(G_SATELLITE_MAP); map.setUIToDefault(); - +north==$md->south) : ?> + var marker=new GMarker(new GLatLng(north; ?>,east; ?>)); + map.addOverlay(marker); + var polygon=new GPolygon([ new GLatLng(north; ?>,west; ?>), new GLatLng(north; ?>,east; ?>), @@ -258,6 +261,7 @@ function reportError(request) new GLatLng(north; ?>,west; ?>) ],"#f33f00",5,1,"#ff0000",0.2); map.addOverlay(polygon); +