Here's wat i tried,
$_output .= "var bds = new GLatLngBounds(new GLatLng($this-
>_min_lat, $this->_min_lon), new GLatLng($this->_max_lat, $this-
>_max_lon));\n";
$_output .= 'var zoom=map.getBoundsZoomLevel(); alert
(zoom);';
//$_output .= 'map.setZoom(map.getBoundsZoomLevel
(bds));' . "\n";
$_output .= sprintf('map.setCenter(new GLatLng(%s, %s),
%d, %s);', number_format($this->center_lat, 6, ".", ""), number_format
($this->center_lon, 6, ".", ""), 'map.getBoundsZoomLevel(bds)', $this-
>map_type) . "\n";
But, it always returns same zoom value
On Aug 19, 6:31 am, Mike Williams <[email protected]> wrote:
> There's an example of using the LatLonBox here:
>
> http://econym.org.uk/gmap/example_geo3.htm
>
> --
> Mike Williamshttp://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---