[mapserver-users] Howto round or truncate number labels
Richard Greenwood
Rich at GreenwoodMap.com
Tue Jun 25 09:25:08 PDT 2002
This is how I do it:
<script language="JavaScript">
document.write("Scale 1:" + Math.round([scale]/100)*100);
</script>
This rounds the scale to 100's
Rich
At 04:26 PM 6/25/2002 +0100, you wrote:
>Hallo
>
>Is it possible to round or truncate the output of a type number labelitem??
>
>Horst
>
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com
More information about the MapServer-users
mailing list