指定点的缩放层次为10
This commit is contained in:
parent
988d180fdc
commit
91b350d05f
|
@ -253,6 +253,9 @@ function reportError(request)
|
|||
var plotbounds=new GLatLngBounds(new GLatLng(<?= $md->south; ?>,<?= $md->west; ?>),new GLatLng(<?= $md->north; ?>,<?= $md->east; ?>));
|
||||
var zoomlevel=map.getBoundsZoomLevel(plotbounds);
|
||||
zoomlevel--;
|
||||
<?php if ($md->north==$md->south) : ?>
|
||||
zoomlevel=10;
|
||||
<?php endif; ?>
|
||||
if (zoomlevel>16) zoomlevel=16;
|
||||
map.setCenter(new GLatLng(<?= ($md->south+$md->north)/2; ?>,<?= ($md->east+$md->west)/2; ?>), zoomlevel);
|
||||
map.setMapType(G_SATELLITE_MAP);
|
||||
|
|
Loading…
Reference in New Issue