<br><font size=2 face="sans-serif">I have this set as well</font>
<br><font size=2 face="sans-serif">$oMap->set("units", MS_METERS);</font>
<br>
<br><font size=2 face="sans-serif">But I still have the problem</font>
<br><font size=2 face="sans-serif"><br>
Steve</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Lime, Steve D (DNR)"
<steve.lime@state.mn.us></b> </font>
<p><font size=1 face="sans-serif">2011-06-16 18:31</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">"Steve.Toutant@inspq.qc.ca"
<Steve.Toutant@inspq.qc.ca>, "mapserver-users@lists.osgeo.org"
<mapserver-users@lists.osgeo.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">RE: [mapserver-users] Scalebar Object
in PHP Mapscript</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3 color=#1f497d face="Calibri">What do you mean by “</font><font size=3 face="Arial">the
map is well scaled but the scalebar is not</font><font size=3 color=#1f497d face="Calibri">
“? Other common params would be SIZE, STYLE and INTERVALS. Does the map
have units set?</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">Steve</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 face="Tahoma"><b>From:</b> mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Steve.Toutant@inspq.qc.ca<b><br>
Sent:</b> Thursday, June 16, 2011 12:29 PM<b><br>
To:</b> mapserver-users@lists.osgeo.org<b><br>
Subject:</b> [mapserver-users] Scalebar Object in PHP Mapscript</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Arial"><br>
Hi,</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
I create a scalebar like this</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
$oMap->scalebar->set("units", MS_METERS);</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
$oMap->scalebar->outlinecolor->setRGB(0,0,0);</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
$oMap->scalebar->set("status", MS_EMBED);</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
And create an image of the map with the scalebar embedded</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
On the image, the map is well scaled but the scalebar is not.</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
Is the code above good? Is there some more parameters I should set?</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
thanks</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
Steve</font>
<br>
<br>
<br>