Hi users,

I am currently using OpenLayers with some tiling layers and setting the 
resolutions
on creation of the map with options parameter like so:

var opt = {
            projection: new OpenLayers.Projection("EPSG:28992"),
            maxExtent: maxBounds,
            resolutions: olRes,
            allOverlays: true,
            units : 'm',            
            controls : [new OpenLayers.Control.Navigation({
                    zoomBoxEnabled: false
                }),new OpenLayers.Control.ArgParser()]
        };

I was wondering if it possible to set the resolutions again after the map is 
created. I want to do some calculations
to remove some of the previous resolutions or when the screen is resized. But 
it does not work when I set
the resolutions again on the map like so:

mapObject.resolutions = olRes;
mapObject.resolution = 215.04;

Can I alter the resolutions on the map after creation?

Kind regards,

Boy de Wit
B3Partners BV
Tel: +31 030 214 20 81
http://www.b3partners.nl | http://twitter.com/boydewit
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to