[mapserver-users] Changing Scalebar units with Mapscript/3.4
Mark Giesbrecht
mgiesbrecht at geoarctic.com
Thu Sep 27 12:11:00 PDT 2001
Hi All,
I'm trying to use PHP/Mapscript 3.4 to change scalebar units
dynamically, using the following:
...PHP code
$gpoMap = ms_newMapObj("reliant_base_test.map");
if (isset($map_scalebar_units))
{
$gpoMap->scalebar->set("units", $map_scalebar_units);
//pure shot in the dark, as I don't know of any scalebar method
}
...from mapfile
SCALEBAR
STYLE 0 #or 1
STATUS EMBED
INTERVALS 6
COLOR 10 10 10
OUTLINECOLOR 10 10 10
UNITS miles
POSITION LR
LABEL
TYPE BITMAP
ANTIALIAS
COLOR 15 15 15
SIZE small
END
TRANSPARENT TRUE
END
I haven't found anything to work; am I at a loss?
Thanks,
Mark
--
Mark Giesbrecht, M.Sc.
GIS Programmer/Analyst
GeoArctic International Services Ltd.
mgiesbrecht at geoarctic.com http://www.geoarctic.com
phone: (403) 290-1320 fax: (403) 264-5848
More information about the MapServer-users
mailing list