<div>I am using the following to define my map:</div>
<div> </div>
<div>options = {<br> projection: "EPSG:900913",<br> units: "m",<br> maxResolution: 156543.0339,<br> numZoomLevels: 18,<br> maxExtent: new OpenLayers.Bounds(-20037508, -20037508,<br> 20037508,
20037508.34)<br>};</div>
<div><font size="2"></font> </div>
<div><font size="2">map = </font><font color="#0000ff" size="2">new</font><font size="2"> OpenLayers.Map(</font><font color="#800000" size="2">'map'</font><font size="2">,options);</font></div>
<div>
<p><font size="2">Then my layer:</font></p>
<p><font size="2">var sat = new OpenLayers.Layer.Google(<br> "Google",<br> {'sphericalMercator': true}<br> );</font></p>
<p><font size="2">What the sphericalMercator true does is run the </font></p>
<p>initMercatorParameters: function() {<br> // set up properties for Mercator - assume EPSG:900913<br> this.RESOLUTIONS = [];<br> var maxResolution = 156543.0339;<br> for(var zoom=0; zoom<=
this.MAX_ZOOM_LEVEL; ++zoom) {<br> this.RESOLUTIONS[zoom] = maxResolution / Math.pow(2, zoom);<br> }<br> this.units = "m";<br> this.projection = "EPSG:900913";<br> },
</p>
<p>The maxResolution of 156543.0339 is based on (20037508.34 + 20037508) / 256.</p>
<p>I need a different Resolution but I still want the forward and inverse mercator functions to work. Where are all the different places to change the resolution? I need it based on a tile that is not 256 in size. I have tried changing this in initMercatorParameters, the map, but It still does not seem to play nice.
</p>
<p>Thanks,</p>
<p>Linda Rawson</p></div>