[Mapserver-users] changing scalebar on the fly
Tom.Kralidis at CCRS.NRCan.gc.ca
Tom.Kralidis at CCRS.NRCan.gc.ca
Mon Jan 13 19:23:08 PST 2003
Hi,
Using MapServer CGI 3.5, my mapfile defines a scalebar as follows:
SCALEBAR
STATUS ON
INTERVALS 4
SIZE 200 2
STYLE 1
COLOR 255 255 255
OUTLINECOLOR 0 0 0
UNITS KILOMETERS
TRANSPARENT ON
LABEL
COLOR 255 255 255
SIZE SMALL
END
END
...for maps viewed in lat/long. My mapfile is geared towards a lat/long (or
EPSG 4326) application, and object defs are defined as such.
However, my when my app changes to LCC, I'd like the units of my scalebar to
be meters to accomodate this.
I tried passing this to the CGI with 'map_scalebar_units=meters', which
seems to have been recognized (units sign in output scalebar is 'm'), but it
appears as if all the text and interval drawings become drawn atop
eachother. Here's an example snapshot:
http://132.156.10.239/prototypes/owsview/cache/ms_scalebar_issue.png
Any ideas as to what's going on here?
Thanks alot
..Tom
=================================
Tom Kralidis
Systems Scientist
Canada Centre for Remote Sensing
Tel: (613) 947-1828
http://www.ccrs.nrcan.gc.ca/
=================================
More information about the MapServer-users
mailing list