Fusion default DisplayUnit

4 messages Options
Embed this post
Permalink
Suhaimi AK

Fusion default DisplayUnit

Reply Threaded More More options
Print post
Permalink

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
--
View this message in context: http://n2.nabble.com/Fusion-default-DisplayUnit-tp1569063p1569063.html
Sent from the Fusion Users mailing list archive at Nabble.com.

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Andrew Parker-3

Re: Fusion default DisplayUnit

Reply Threaded More More options
Print post
Permalink
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 <Unit> tags and <DisplayUnits> tags.  You can see my changes
at http://216.93.173.156/demo.

Look at the Fusion API for available units.  For example, the options
for the measure toolbar are listed at
http://trac.osgeo.org/fusion/wiki/Widgets/Measure.

I also changed the units of the coordinate position to Lat/Long.  In the
ApplicationDefinition.xml, I changed the <Template> tag to as follows:

<!-- STATUS POSITION -->

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

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:

> 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
>  
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Suhaimi AK

Re: Fusion default DisplayUnit

Reply Threaded More More options
Print post
Permalink
Thank you Andrew, it helps me a lot


Andrew Parker-6 wrote:
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 <Unit> tags and <DisplayUnits> tags.  You can see my changes
at http://216.93.173.156/demo.

Look at the Fusion API for available units.  For example, the options
for the measure toolbar are listed at
http://trac.osgeo.org/fusion/wiki/Widgets/Measure.

I also changed the units of the coordinate position to Lat/Long.  In the
ApplicationDefinition.xml, I changed the <Template> tag to as follows:

<!-- STATUS POSITION -->

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

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:
> 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
>  
_______________________________________________
fusion-users mailing list
fusion-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users
Andrew Parker-3

Re: Fusion default DisplayUnit

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I forgot to  mention that I had to comment out the following sections of the ApplicationDefinition.xml.    This was the only way I could get the View Option Toolbar from overriding my preferred units.  It also removes the View Options from the Toolbar and the right click of the mouse.

<!-- CONTEXT MENU  VIEW OPTIONS -->

<!--
<Widget xsi:type="UiWidgetType">
      <Name>menuViewOptions</Name>
      <Type>ViewOptions</Type>
      <StatusItem>Switch between Imperial and Metric units</StatusItem>
      <Extension xsi:type="CustomContentType">
        <DisplayUnits>Miles</DisplayUnits>
      </Extension>
      <ImageUrl>images/icons/view-options.png</ImageUrl>
      <ImageClass/>
      <Tooltip/>
      <Label>View Options</Label>
      <Disabled/>
    </Widget> 
-->
 
AND

<!-- TOOLBAR VIEW OPTIONS -->

    <!--
    <Widget xsi:type="UiWidgetType">
      <Name>toolbarViewOptions</Name>
      <Type>ViewOptions</Type>
      <StatusItem>Switch between Imperial and Metric units</StatusItem>
      <Extension xsi:type="CustomContentType">
        <DisplayUnits>miles</DisplayUnits>
      </Extension>
      <ImageUrl>images/icons/view-options.png</ImageUrl>
      <ImageClass/>
      <Tooltip/>
      <Label>View Options</Label>
      <Disabled/>
    </Widget>

-->
Andrew


Suhaimi AK wrote:
Thank you Andrew, it helps me a lot :-D



Andrew Parker-6 wrote:
  
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 <Unit> tags and <DisplayUnits> tags.  You can see my changes 
at http://216.93.173.156/demo.

Look at the Fusion API for available units.  For example, the options 
for the measure toolbar are listed at 
http://trac.osgeo.org/fusion/wiki/Widgets/Measure. 

I also changed the units of the coordinate position to Lat/Long.  In the 
ApplicationDefinition.xml, I changed the <Template> tag to as follows:

<!-- STATUS POSITION -->

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

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:
    
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
  
      
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users


    

  

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users