measure units

View: New views
3 Messages — Rating Filter:   Alert me  

measure units

by Kevin Edmundson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No matter what I use in the js_config.php

 

/**

 * Units for measurement (distance, area)

 */

PM.MeasureUnits = {distance:" [ft]", area:" [ft²]", factor:1};

//PM.MeasureUnits = {distance:" [m]", area:" [m²]", factor:1};

//PM.measureUnits = {distance:" [km]", area:" [km²]", factor:1000};

 

 

The units that display on the map screen are ALWAYS [m].  Is there
somewhere else that I need to set that?

 

Kevin Edmundson

CIO

WTH Technology, Inc

567 W Westfield Blvd

Indianapolis, IN 46208

317.259.0105 office

317.259.1423 fax

317.501.8560 mobile

kevin.edmundson@...

 

NOTICE: This message is from the technology firm WTH Technology, Inc.
This message is intended only for the individual or entity to which it
is directed. If you are not the addressee, or if this message has been
addressed to you in error, you are not authorized to use, read, copy or
distribute this message and any attachments, and we ask that you please
immediately delete this message and attachments (including all copies),
and notify the sender by return e-mail so that our records can be
corrected. All personal messages express views only of the sender, which
are not to be attributed to WTH Technology, Inc, and may not be
distributed or copied without this statement.

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Parent Message unknown Measure units

by Kevin Edmundson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No matter what I use in the js_config.php

 

/**

 * Units for measurement (distance, area)

 */

PM.MeasureUnits = {distance:" [ft]", area:" [ft²]", factor:1};

//PM.MeasureUnits = {distance:" [m]", area:" [m²]", factor:1};

//PM.measureUnits = {distance:" [km]", area:" [km²]", factor:1000};

 

 

The units that display on the map screen are ALWAYS [m].  Is there
somewhere else that I need to set that?

 

 

Kevin Edmundson

CIO

WTH Technology, Inc

567 W Westfield Blvd

Indianapolis, IN 46208

317.259.0105 office

317.259.1423 fax

317.501.8560 mobile

kevin.edmundson@...

 

NOTICE: This message is from the technology firm WTH Technology, Inc.
This message is intended only for the individual or entity to which it
is directed. If you are not the addressee, or if this message has been
addressed to you in error, you are not authorized to use, read, copy or
distribute this message and any attachments, and we ask that you please
immediately delete this message and attachments (including all copies),
and notify the sender by return e-mail so that our records can be
corrected. All personal messages express views only of the sender, which
are not to be attributed to WTH Technology, Inc, and may not be
distributed or copied without this statement.

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Re: Measure units

by Armin Burger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 13/10/2009 16:00, Kevin Edmundson wrote:

> No matter what I use in the js_config.php
>
> /**
>
>  * Units for measurement (distance, area)
>
>  */
>
> PM.MeasureUnits = {distance:" [ft]", area:" [ft²]", factor:1};
>
> //PM.MeasureUnits = {distance:" [m]", area:" [m²]", factor:1};
>
> //PM.measureUnits = {distance:" [km]", area:" [km²]", factor:1000};
>
> The units that display on the map screen are ALWAYS [m].  Is there
> somewhere else that I need to set that?
>
>  

Javascript is case sensitive, so you need to define the variable
correctly as

PM.measureUnits
   ^^^
not as

PM.MeasureUnits


When I remember well most US projection systems are using meters as
units while the common distance unit in use is feet. If you map units
are in meters then you need to define this as follows:

PM.measureUnits = {distance:" [ft]", area:" [ft²]", factor:0.3048};

armin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users