[OpenLayers-Users] PanZoomBar
Richie Pierce
Richie.Pierce at arkansas.gov
Mon Aug 28 09:35:27 CDT 2006
I'm trying to define a custom extent and zoom levels for my interface.
The maxExtent parameter seems to be working fine but the maxZoomLevel
doesn't seem to be working. When the map loads, it is loading to the
extent I define. But the PanZoomBar is still showing the standard 16
levels of zoom and the max zoom level on the bar is outside of my
defined maxExtent.
Here's my call for a new map:
var bounds = new OpenLayers.Bounds(-94.8, 32.3, -89.6,
36.9);
var map = new OpenLayers.Map('map', {maxExtent: bounds,
maxZoomLevel: 8, controls: [] });
Then I add PanZoomBar / MouseToolbar and LayerSwitcher controls:
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseToolbar());
var LayerSwitcher = new OpenLayers.Control.LayerSwitcher();
I'm sure I'm missing something, any help would be great. Thanks
Richie Pierce
GIS Specialist
Arkansas Geographic Information Office
(w)501-682-2937
(c)501-416-2267
www.gis.state.ar.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-viper.python-hosting.com/pipermail/users/attachments/20060828/69a152dd/attachment.html
More information about the Users
mailing list