[OpenLayers-Users] REPEAT QUESTION - How do I prevent my map
from zooming out too far?
Andreas Hocevar
ahocevar at opengeo.org
Mon Jul 20 16:36:57 EDT 2009
jim.meyer at concept-solutions.com wrote:
> Hi Andreas,
>
> Thanks for your response. Do these options need to be set for the base
> layer or for the map? Also, do you have an example of the values that would
> confine my map to just one view of the world?
>
You can set them on the base layer or on the map.
Assuming that you use Spherical Mercator, have a look at
http://localhost/openlayers/examples/spherical-mercator.html for
possible values.
Regards,
Andreas.
> Again... thanks for your assistance,
> Jim
>
> James B. Meyer
> Java Programmer
> Concept Solutions, Inc.
> (703) 472-7838
> jim.meyer at concept-solutions.com
> 11600 Sunrise Valley Drive
> Suite 300
> Reston, VA 20191
>
> -----Original Message-----
> From: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] On Behalf
> Of Andreas Hocevar
> Sent: Monday, July 20, 2009 3:22 PM
> To: jim.meyer at concept-solutions.com
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] REPEAT QUESTION - How do I prevent my map
> from zooming out too far?
>
> Hi,
>
> there are many ways to do that, combine one or more of the options
> below to achieve the result you need:
>
> * set a maxExtent for your base layer
> * set a maxResolution for the base layer,
> * configure a resolutions or scales array for your base layer
>
> Regards,
> Andreas.
>
> On Mon, Jul 20, 2009 at 9:05 PM, <jim.meyer at concept-solutions.com> wrote:
>
>> Hi everyone,
>>
>>
>>
>> I had asked this question originally on June 29, 2009 and didn’t
>>
> receive
>
>> a response…
>>
>>
>>
>> Currently when I zoom out to the fullest extent available on the
>> panzoombar my map shows four copies of the earth. Is there an easy way to
>> prevent this from happening?
>>
>>
>>
>> It seems that using a ‘singleTile’ value set to true will do it. But,
>> I’d prefer to continue to rely upon tiled images. Are there any other
>>
> ideas
>
>> out there?
>>
>>
>>
>> Thanks,
>> Jim
>>
>>
>>
>> James B. Meyer
>>
>> Java Programmer
>>
>> Concept Solutions, Inc.
>>
>> (703) 472-7838
>>
>> jim.meyer at concept-solutions.com
>>
>> 11600 Sunrise Valley Drive
>>
>> Suite 300
>>
>> Reston, VA 20191
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>>
>
>
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list