<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I forgot to&nbsp; mention that I had to comment out the following sections
of the ApplicationDefinition.xml.&nbsp;&nbsp;&nbsp; This was the only way I could get
the View Option Toolbar from overriding my preferred units.&nbsp; It also
removes the View Options from the Toolbar and the right click of the
mouse.<br>
<br>
&lt;!-- CONTEXT MENU&nbsp; VIEW OPTIONS --&gt;<br>
<br>
&lt;!--<br>
&lt;Widget xsi:type="UiWidgetType"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;menuViewOptions&lt;/Name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Type&gt;ViewOptions&lt;/Type&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StatusItem&gt;Switch between Imperial and Metric
units&lt;/StatusItem&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Extension xsi:type="CustomContentType"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DisplayUnits&gt;Miles&lt;/DisplayUnits&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Extension&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageUrl&gt;images/icons/view-options.png&lt;/ImageUrl&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageClass/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Tooltip/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Label&gt;View Options&lt;/Label&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Disabled/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/Widget&gt;&nbsp; <br>
--&gt;<br>
&nbsp;<br>
AND<br>
<br>
&lt;!-- TOOLBAR VIEW OPTIONS --&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp; &lt;Widget xsi:type="UiWidgetType"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;toolbarViewOptions&lt;/Name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Type&gt;ViewOptions&lt;/Type&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StatusItem&gt;Switch between Imperial and Metric
units&lt;/StatusItem&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Extension xsi:type="CustomContentType"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DisplayUnits&gt;miles&lt;/DisplayUnits&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Extension&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageUrl&gt;images/icons/view-options.png&lt;/ImageUrl&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageClass/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Tooltip/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Label&gt;View Options&lt;/Label&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Disabled/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/Widget&gt;<br>
<br>
--&gt;<br>
<pre class="moz-signature" cols="72">Andrew
</pre>
<br>
<br>
Suhaimi AK wrote:
<blockquote cite="mid:20668634.post@talk.nabble.com" type="cite">
  <pre wrap="">Thank you Andrew, it helps me a lot :-D



Andrew Parker-6 wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I do not now if this is the best way, but this is how I changed the units:

In ApplicationDefinition.xml search for "units" and changed all value to 
miles (or whatever unit you want).  When you search for "units" you will 
either find &lt;Unit&gt; tags and &lt;DisplayUnits&gt; tags.  You can see my changes 
at <a class="moz-txt-link-freetext" href="http://216.93.173.156/demo">http://216.93.173.156/demo</a>.

Look at the Fusion API for available units.  For example, the options 
for the measure toolbar are listed at 
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/fusion/wiki/Widgets/Measure">http://trac.osgeo.org/fusion/wiki/Widgets/Measure</a>. 

I also changed the units of the coordinate position to Lat/Long.  In the 
ApplicationDefinition.xml, I changed the &lt;Template&gt; tag to as follows:

&lt;!-- STATUS POSITION --&gt;

    &lt;Widget xsi:type="WidgetType"&gt;
      &lt;Name&gt;StatusCoords&lt;/Name&gt;
      &lt;Type&gt;CursorPosition&lt;/Type&gt;
      &lt;StatusItem/&gt;
      &lt;Extension xsi:type="CustomContentType"&gt;
          &lt;Template&gt;Lat/Long: {y}, {x}&lt;/Template&gt;
        &lt;Precision&gt;4&lt;/Precision&gt;
        &lt;EmptyText&gt;&amp;amp;nbsp;&lt;/EmptyText&gt;
      &lt;/Extension&gt;
    &lt;/Widget&gt;

As for the scale, I am not sure.  Are you using MapServer?  If so, maybe 
you can set the scale in MapServer?


Andrew




Suhaimi AK wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi,

I'm using fusion and customize ApplicationDefinition.xml using the maroon
template example. I'm creating my map using maestro.

My problem is, my map display units is start in metrics. So do my scale
with
scale 1:104857600104.4932 for example. How can i change my default units
and
scale to 1:50000 or 1:100000.

Thank you in advance.


Regards.
Suhaimi AK
  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
fusion-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>