[Mapserver-users] How to link maps with different scales

Johan Antonsson johan at antonsson.com
Sun Nov 16 11:44:21 EST 2003


Thanks Bart,

So every layer in my mapfile should have a MINSCALE and MAXSCALE set and
each map set should have the same values?

The reason for grouping my layers is readability I guess? Any other
reason?

Regards

/Johan

------------------------------------------------------------
Johan Antonsson
johan at antonsson.com
------------------------------------------------------------


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Bart van
den Eijnden
Sent: den 16 november 2003 14:21
To: Johan Antonsson; MapServer Users
Subject: Re: [Mapserver-users] How to link maps with different scales

Hi Johan,

you should make your layers scale dependent in the map file and then
GROUP 
them. Put them all in one mapfile.

For scale dependency you use MINSCALE and MAXSCALE.

To group layers together use GROUP "group_name".

See for more elaborate info:
http://mapserver.gis.umn.edu/doc40/mapfile-reference.html

Best regards,
Bart

On Sun, 16 Nov 2003 14:04:53 +0100, Johan Antonsson
<johan at antonsson.com> 
wrote:

> Hi all,
>
> Newbie question: I have three sets of maps, all showing the same area
> but with different scales, 50 000, 100 000 and 250 000. I want
MapServer
> to automatically switch between those map sets when the user zooms in
or
> out to a certain extent. Right now I have one mapfile per map set.
Does
> MapServer support this or do I have to keep track of the current scale
> and map sets myself? Does anyone have an example of how to solve this
> problem?
>
> TIA
>
> /Johan
>
> ------------------------------------------------------------
> Johan Antonsson
> johan at antonsson.com
> ------------------------------------------------------------
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>



-- 
  
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list