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

Bart van den Eijnden bartvde@xs4all.nl
Sun, 16 Nov 2003 18:15:50 +0100


Hi Johann,

MINSCALE and MAXSCALE determine the range in which your map layer will be 
visible.

The grouping is only useful when you don't want to bother your client 
application with all the different reference map layers, but just provide 
one single pseudo name (alias) for it.

Best regards,
Bart

On Sun, 16 Nov 2003 17:44:21 +0100, Johan Antonsson <johan@antonsson.com> 
wrote:

> 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@antonsson.com
> ------------------------------------------------------------
>
>
> -----Original Message-----
> From: mapserver-users-admin@lists.gis.umn.edu
> [mailto:mapserver-users-admin@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@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@antonsson.com
>> ------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users@lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>
>
>



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