I have this set as well
$oMap->set("units", MS_METERS);

But I still have the problem

Steve



"Lime, Steve D (DNR)" <steve.l...@state.mn.us> 
2011-06-16 18:31

A
"steve.tout...@inspq.qc.ca" <steve.tout...@inspq.qc.ca>, 
"mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org>
cc

Objet
RE: [mapserver-users] Scalebar Object in PHP Mapscript








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?
 
Steve
 
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Thursday, June 16, 2011 12:29 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Scalebar Object in PHP Mapscript
 

Hi, 
I create a scalebar like this 
$oMap->scalebar->set("units", MS_METERS); 
$oMap->scalebar->outlinecolor->setRGB(0,0,0); 
$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? 
thanks 
Steve


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to