<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma,Verdana,sans-serif} .MsoNormal{line-height:120%;margin:0}</style></head><body>
Hi users,<br><br>I am currently using OpenLayers with some tiling layers and setting the resolutions<br>on creation of the map with options parameter like so:<br><br><font size="2"><span style="font-family: Courier;">var opt = {</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:28992"),</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxExtent: maxBounds,</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resolutions: olRes,</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allOverlays: true,</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units : 'm',&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controls : [new OpenLayers.Control.Navigation({</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zoomBoxEnabled: false</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }),new OpenLayers.Control.ArgParser()]</span><br style="font-family: Courier;"><span style="font-family: Courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</span></font><br><br>I was wondering if it possible to set the resolutions again after the map is created. I want to do some calculations<br>to remove some of the previous resolutions or when the screen is resized. But it does not work when I set<br>the resolutions again on the map like so:<br><br><span style="font-family: Courier;">mapObject.resolutions = olRes;</span><br style="font-family: Courier;"><span style="font-family: Courier;">mapObject.resolution = 215.04;</span><br><br>Can I alter the resolutions on the map after creation?<br><br>Kind regards,<br><br>Boy de Wit<br>B3Partners BV<br>Tel: +31 030 214 20 81<br><a href="http://www.b3partners.nl" target="_blank">http://www.b3partners.nl</a> | <a href="http://twitter.com/boydewit" target="_blank">http://twitter.com/boydewit</a></body></html>