<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Bob,<br>
    <br>
    I copied the code from v2.4's main.js:<br>
    <br>
    <tt>    if(CONFIGURATION.scale_line.enabled) {</tt><tt><br>
    </tt><tt>        Map.addControl(new OpenLayers.Control.ScaleLine({</tt><tt><br>
    </tt><tt>            bottomOutUnits:
      CONFIGURATION.scale_line.bottom_units,</tt><tt><br>
    </tt><tt>            topOutUnits:
      CONFIGURATION.scale_line.top_units,</tt><tt><br>
    </tt><tt>            maxWidth: CONFIGURATION.scale_line.width</tt><tt><br>
    </tt><tt>        }));</tt><tt><br>
    </tt><tt>    }</tt><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>    if(CONFIGURATION.scale_line.enabled) {</tt><tt><br>
    </tt><tt>        Map.addControl(new OpenLayers.Control.ScaleLine({</tt><tt><br>
    </tt><tt>            bottomOutUnits:
      CONFIGURATION.scale_line.bottom_units,</tt><tt><br>
    </tt><tt>            topOutUnits:
      CONFIGURATION.scale_line.top_units,</tt><tt><br>
    </tt><tt>            maxWidth: CONFIGURATION.scale_line.width</tt><tt><br>
    </tt><tt>        }));</tt><tt><br>
    </tt><tt>    };</tt><tt><br>
    </tt><tt><br>
    </tt><tt>this.configureMapTools();</tt><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 src="cid:part1.04030002.00010907@geoanalytic.com" alt=""><br>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <div class="moz-cite-prefix">On 7/29/2015 8:29 AM, Bistrais, Bob
      wrote:<br>
    </div>
    <blockquote
cite="mid:D655A37D8BC306438F87579A672E3D1078B7A3BD@OIT-TEAQEXMBX01.som.w2k.state.me.us"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <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;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
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-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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Brent, Jim,
            thanks for the suggestions. 
            <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">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?<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">Jim- if you
            have a chance, can you elaborate on the contents of the
            mapfile for making the scale bar?<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">Thanks again,<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 [<a class="moz-txt-link-freetext" 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 class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><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>
            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""><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>
          <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 moz-do-not-send="true"
                    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 moz-do-not-send="true"
                    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
              moz-do-not-send="true"
              href="http://www.geomoose.org/releases/2.6.html"><a class="moz-txt-link-freetext" href="http://www.geomoose.org/releases/2.6.html">http://www.geomoose.org/releases/2.6.html</a></a>),
            and it was suggested to use the ScaleLine.js extension,
            which I never found (<a moz-do-not-send="true"
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>
            <o:p></o:p></p>
          <pre>Best Regards,<o:p></o:p></pre>
          <pre>Brent Fraser<o:p></o:p></pre>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>