<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New","serif";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">That’s great!  Thank you Brent, Jim and Dean for your help on this.  That really helps me a lot.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Bob<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Brent Fraser [mailto:bfraser@geoanalytic.com]
<br>
<b>Sent:</b> Wednesday, July 29, 2015 11:23 AM<br>
<b>To:</b> Bistrais, Bob; geomoose-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [Geomoose-users] configuring scaleLine.js<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Bob,<br>
<br>
I copied the code from v2.4's main.js:<br>
<br>
<tt><span style="font-size:10.0pt">    if(CONFIGURATION.scale_line.enabled) {</span></tt><span style="font-size:10.0pt;font-family:"Courier New","serif""><br>
<tt>        Map.addControl(new OpenLayers.Control.ScaleLine({</tt><br>
<tt>            bottomOutUnits: CONFIGURATION.scale_line.bottom_units,</tt><br>
<tt>            topOutUnits: CONFIGURATION.scale_line.top_units,</tt><br>
<tt>            maxWidth: CONFIGURATION.scale_line.width</tt><br>
<tt>        }));</tt><br>
<tt>    }</tt></span><br>
<br>
and pasted it into v2.6.1's build\dojo\dojo.js (yes, I know that is not the right way) just before "this.configureMapTools();":<br>
<br>
<br>
<tt><span style="font-size:10.0pt">    if(CONFIGURATION.scale_line.enabled) {</span></tt><span style="font-size:10.0pt;font-family:"Courier New","serif""><br>
<tt>        Map.addControl(new OpenLayers.Control.ScaleLine({</tt><br>
<tt>            bottomOutUnits: CONFIGURATION.scale_line.bottom_units,</tt><br>
<tt>            topOutUnits: CONFIGURATION.scale_line.top_units,</tt><br>
<tt>            maxWidth: CONFIGURATION.scale_line.width</tt><br>
<tt>        }));</tt><br>
<tt>    };</tt><br>
<br>
<tt>this.configureMapTools();</tt></span><br>
<br>
(You should really put this in Application.js and do a dojo compile.)<br>
<br>
But it did show the OpenLayers scale bar in v2.6.1:<br>
<br>
<img width="835" height="657" id="_x0000_i1025" src="cid:image001.png@01D0C9F4.29BED5C0"><br>
<br>
<br>
<o:p></o:p></p>
<pre>Best Regards,<o:p></o:p></pre>
<pre>Brent Fraser<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 7/29/2015 8:29 AM, Bistrais, Bob wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Brent, Jim, thanks for the suggestions. 
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ve downloaded 2.4 from the site.  What code files do I find the scale_line object?  Will simply copying this line to my current version 2.6.1 work?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Jim- if you have a chance, can you elaborate on the contents of the mapfile for making the scale bar?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks again,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Bob</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Brent Fraser [<a href="mailto:bfraser@geoanalytic.com">mailto:bfraser@geoanalytic.com</a>]
<br>
<b>Sent:</b> Tuesday, July 28, 2015 1:51 PM<br>
<b>To:</b> Bistrais, Bob; <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Geomoose-users] configuring scaleLine.js</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Bob,<br>
<br>
  As Jim points out, one approach is to use a mapserver layer to create an empty map with just a scale bar.  Another approach is to look at GeoMoose v2.4 and see where the scale_line object is used in the JavaScript.  It basically just configures the OpenLayers
 scalebar.  The advantage of this approach is that it can support the ground distance instead of just the map distance by including
<br>
<br>
<tt><span style="font-size:10.0pt">    if(CONFIGURATION.scale_line.enabled) { </span>
</tt><span style="font-size:10.0pt;font-family:"Courier New","serif""><br>
<tt>        :            geodesic: true,  </tt></span><br>
<br>
This difference can be significant depending on your map projection and where your are mapping.<br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>Best Regards,<o:p></o:p></pre>
<pre>Brent Fraser<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 7/28/2015 10:54 AM, Bistrais, Bob wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Thanks for the response, Brent.  I haven’t found ScaleLine.js either.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">But then, how do I get a scale bar to appear? 
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Brent Fraser [<a href="mailto:bfraser@geoanalytic.com">mailto:bfraser@geoanalytic.com</a>]
<br>
<b>Sent:</b> Tuesday, July 28, 2015 12:36 PM<br>
<b>To:</b> Bistrais, Bob; <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Geomoose-users] configuring scaleLine.js</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Bob,<br>
<br>
Looks like the ScaleLine object was deprecated in v2.6 (<a href="http://www.geomoose.org/releases/2.6.html">http://www.geomoose.org/releases/2.6.html</a>), and it was suggested to use the ScaleLine.js extension, which I never found (<a href="http://lists.osgeo.org/pipermail/geomoose-users/2013-April/004895.html">http://lists.osgeo.org/pipermail/geomoose-users/2013-April/004895.html</a>)<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>Best Regards,<o:p></o:p></pre>
<pre>Brent Fraser<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</blockquote>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</body>
</html>