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&sup2]", 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to