Hi,
I would like to create an OpenLayers map, where I set the max extent,
and have it initially zoomed to the max extent (or maxscale).
Are there any options that I can set like an initial extent or initial
zoom level or initial scale? Currently it just zooms to some scale or
extent in between min and max scale, not to the max.
I know that I can use .zoomToMaxExtent() after the map was created, but
this way it would lead to two WMS requests, and I would want to avoid
the first one.
Here are my options:
var extent = new OpenLayers.Bounds(693000,241000,700000,249000);
var MapOptions = {
projection: new OpenLayers.Projection("EPSG:21781"),
units: "m",
maxScale:50,
minScale:40000,
maxExtent: extent,
fractionalZoom: true,
transitionEffect:"resize",
controls: []
};
I'd like the map to initially load with maxExtent.
Thank you for your help!
Andreas
--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users