[Mapserver-users] How to link maps with different scales
Martin, Daniel A
Daniel.A.Martin at erac.com
Mon Nov 17 07:57:16 PST 2003
I do this often myself. The trick is to set the scale, and name both
layers the same exact thing. As long as you have non-overlapping scales
it will work seamlessly. So, the MINSCALE for one layer would be the
MAXSCALE for your more detailed layer. Using the same name means
turning the layer on will turn the other layer on when you cross that
scale boundary.
A good example where I use this is for roads. I have TIGER line files
showing at a close scale, but then drop to a simple highway layer when
the user zooms farther out.
-Dan
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Johan
Antonsson
Sent: Sunday, November 16, 2003 10:44 AM
To: MapServer Users
Subject: RE: [Mapserver-users] How to link maps with different scales
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
_______________________________________________
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