From 91b350d05f1ee935b5557608669d9788f17267f4 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 29 Jun 2010 12:56:30 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=82=B9=E7=9A=84=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E5=B1=82=E6=AC=A1=E4=B8=BA10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/views/scripts/water/view.phtml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/default/views/scripts/water/view.phtml b/application/default/views/scripts/water/view.phtml index fb1d53be..061706d2 100755 --- a/application/default/views/scripts/water/view.phtml +++ b/application/default/views/scripts/water/view.phtml @@ -253,6 +253,9 @@ function reportError(request) var plotbounds=new GLatLngBounds(new GLatLng(south; ?>,west; ?>),new GLatLng(north; ?>,east; ?>)); var zoomlevel=map.getBoundsZoomLevel(plotbounds); zoomlevel--; +north==$md->south) : ?> + zoomlevel=10; + if (zoomlevel>16) zoomlevel=16; map.setCenter(new GLatLng(south+$md->north)/2; ?>,east+$md->west)/2; ?>), zoomlevel); map.setMapType(G_SATELLITE_MAP);