[mapserver-users] Scalebar Object in PHP Mapscript

Lime, Steve D (DNR) steve.lime at state.mn.us
Thu Jun 16 18:31:17 EDT 2011

What do you mean by "the map is well scaled but the scalebar is not "? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set?


From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca
Sent: Thursday, June 16, 2011 12:29 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Scalebar Object in PHP Mapscript

I create a scalebar like this
$oMap->scalebar->set("units", MS_METERS);
$oMap->scalebar->set("status", MS_EMBED);

And create an image of the map with the scalebar embedded
On the image, the map is well scaled but the scalebar is not.

Is the code above good? Is there some more parameters I should set?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110616/1301749b/attachment.html

More information about the mapserver-users mailing list