Sure!
var trackBounds = new OpenLayers.Bounds(-127.5,39,-121.9,37); //an
area off the coast of San Francisco that I care about
. ..// make the map etc
map.zoomToExtent(trackBounds, true);
Hmmm. Wait a minute. That is a little different than the function you
are talking about. I imagine that this one uses the one you are
referencing, but that may call for confirmation.
Michael
On 6/15/2011 7:11 AM, Arnie Shore wrote:
Eric, thanks. Certainly on point.
But for those of us not yet comfortable with the syntax, a usage
example - one line in most cases, I'd think - wd be immensely helpful.
I'm still fighting it and cd use some help.
AS
On 6/15/2011 8:01 AM, Eric Lemoine wrote: <snip>
<http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getZoomForExtent>
Cheers,
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users