Text-based scale (ie. 1: XXXX)

Stepan Kafka kafka at email.cz
Mon Mar 19 23:01:04 PST 2001


Use [scale] keyword in the template file. You can also round the scale with
javascript code:

<script>document.write(Math.round([scale]))</script>

Stepan

> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele Nyon
> Odesláno: 19. bøezna 2001 17:23
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: Text-based scale (ie. 1: XXXX)
>
>
> Hi,
>
> In order to set the MAXSCALE and MINSCALE, I need to know the
> current scale
>
> of the map in text form, like 1: 130033. I have seen some applications
> having it.
> Can anyone pass the template or map file (or snippets will do) doing this.
>
> Thanks
> Nyon
>




More information about the MapServer-users mailing list