[mapserver-users] turning on layers at a particular zoom level
sunny74
sb.ray at hotmail.com
Fri Aug 28 06:44:56 PDT 2009
Hi,
Thanks for your reply.
I went thru the link and read about MAXSCALEDENOM/MINSCALEDENOM. So
MINSCALEDENOM is the minimum scale level at which a layer will become
visible.
But I am a bit confused.When the map loads for the first time it has a zoom
level of 7 as given in the code below.
map.setCenter(new OpenLayers.LonLat(74.25, 20.35), 7);
In terms of scale it is showing 1:3M.
What is M?
If I increase the zoom level i.e do zoom in, scale becomes 1:856K and 1:256K
etc i.e scale decreases.
So If want a layer to be visible at a scale level of 1:2M what do I write in
the mapfile?
How to use TileCache or GeoWebCache?Pls give the js code.
Rahkonen Jukka wrote:
>
> Hi,
>
> Mapserver is somehow documented, about adjusting visibility according to
> scale, try to find MAXSCALEDENOM/MINSCALEDENOM from
> http://www.mapserver.org/mapfile/layer.html#index-21
>
> Mapserver does not do caching but you can use for examply TileCache or
> GeoWebCache between your clients and Mapserver.
>
> -Jukka Rahkonen-
>
>
>
>> -----Alkuperäinen viesti-----
>> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta sunny74
>> Lähetetty: 28. elokuuta 2009 14:53
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] turning on layers at a particular zoom level
>>
>>
>> DEar Friends,
>>
>> I have 12 layers in my map and it is taking tooooo long to
>> load.Therefore I decided to turn on only 2 layers at Page Load.
>>
>> Rest of the layers I want to turn on at a particular zoom
>> level.How can I check the zoom level and turn on these layers.
>>
>> How can make the map load faster especially on page reload?
>> Is it possible to cache the map or is there some other technique?
>>
>> Thanks for ur reply.
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-le
>> vel-tp3534156p3534156.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://n2.nabble.com/turning-on-layers-at-a-particular-zoom-level-tp3534156p3534743.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list