Just had a bit of a play and got it working. Here's what I did:<br><br>map = new OpenLayers.Map( 'map' , { controls: [new OpenLayers.Control.MouseDefaults()] , 'numZoomLevels':3});<br>var satellite = new
OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, MIN_ZOOM_LEVEL: 10, MAX_ZOOM_LEVEL: 13 } );<br>map.addLayers([satellite]);<br><br>You'll probably want to choose different MIN and MAX values but this seems to work for me.
<br><br><div><span class="gmail_quote">On 05/07/07, <b class="gmail_sendername">kaka</b> <<a href="mailto:drspencer@hotmail.com">drspencer@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I have tried using maxZoomLevel etc. but to my understanding, this only<br>decides if the layer should be drawn or not, and it does not actually define<br>the resolutions used. Is this correct? Also, I found some google maps
<br>resolutions over at<br><a href="http://dev.openlayers.org/docs/overview-summary-Google.js.html">http://dev.openlayers.org/docs/overview-summary-Google.js.html</a> , but I am<br>not sure of how to insert them (3, to be exact) in my example. Any
<br>suggestions? Many thanks for your rapid reply.<br><br>Magnus<br><br><br><br>Glen Stampoultzis-2 wrote:<br>><br>> Well the resolutions are defined in an array called RESOLUTIONS in<br>> google.js.<br>> I'm guessing you could start by looking at altering that and/or
<br>> MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL.<br>><br>> On 05/07/07, kaka <<a href="mailto:drspencer@hotmail.com">drspencer@hotmail.com</a>> wrote:<br>>><br>>><br>>> Hi<br>>> I am trying to create a map with only three zoom levels, using google
<br>>> maps<br>>> as background. I have put up an example at<br>>> <a href="http://www.villageografica.com/test50/zoomLevels.html">http://www.villageografica.com/test50/zoomLevels.html</a> . I would like to
<br>>> keep<br>>> the top three zoom levels and cut the lower six ones, but if I change the<br>>> number of zoom levels from 9 to 3, the map will be far too zoomed out on<br>>> first load, much more than intended,
<br>>> <a href="http://www.villageografica.com/test50/zoomLevels2.html">http://www.villageografica.com/test50/zoomLevels2.html</a> . Is there a way<br>>> to<br>>> define exactly which ones to use?<br>>>
<br>>> Magnus<br>>> --<br>>> View this message in context:<br>>> <a href="http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053">http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439053
</a><br>>> Sent from the OpenLayers Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>>><br>>> _______________________________________________<br>>> Users mailing list<br>
>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>>> <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>>><br>><br>> _______________________________________________
<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>><br>
><br><br>--<br>View this message in context: <a href="http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439171">http://www.nabble.com/Defining-zoom-levels-with-Google-Maps-tf4027046.html#a11439171
</a><br>Sent from the OpenLayers Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">
Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>