scale?
Chip Taylor
work at XWB.COM
Mon Jan 30 08:27:03 PST 2006
Luis, could you post your Javascript to the list. It would be helpful to
me.
Chip Taylor
_____
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Luis Treviño Huerta
Sent: Monday, January 30, 2006 8:21 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] scale?
Jeremy:
you can use [scale] in your template file.
Use some javascript to format the value of scale (like: 1:50,000 or
1:50.000). I have a small code that does this formating using a
getElementById. if you want it I can mail it to you.
Regards
Luis
----- Original Message -----
From: Sears, Jeremy <mailto:Jeremy.Sears at CCRS.NRCAN.GC.CA>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Monday, January 30, 2006 9:45 AM
Subject: [UMN_MAPSERVER-USERS] scale?
Hi All,
This should be an easy question, however I cant find information on it....
How does one display the scale of a map? Im looking to have mapserver (or
other means?) produce a scale like "1:50 000", rather than the scale bar.
Thanks
Jeremy
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Jerl Simpson
Sent: January 30, 2006 10:27 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] setting variable value in mapfile
Hello,
I know I can easily use variables in a mapfile, when the value comes from
cookies or a GET request. But what about setting a variable inside the
mapfile itself?
Something like:
HIGHWAY_MAX_SCALE=2000000
HIGHWAY_MIN_SCALE=90000
or
HIGHWAY_COLOR="255 250 115"
then be able to use something like:
COLOR %HIGHWAY_COLOR%
in a CLASS
That way if I decide I want to change a color, I can change it once, and
have it take affect for everywhere else?
Thanks,
Jerl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060130/87220de7/attachment.htm>
More information about the MapServer-users
mailing list