[Cartoweb-users] Wrong measurement unit

Dirk Jesko ml.dje at geocontent.de
Mon May 7 06:13:46 EDT 2007


Hello,

when measuring, I always get the same unit (km), while the value of the 
measurement changes between km to m at a scale of 1:10.000 (as set in 
the ini file). The template has a condition that changes between 'm' and 
'km':

<div id="floatDistance" class="locationInfo">{t}Dist approx.:{/t}%s{if 
$factor == 1000} km{else} m{/if}</div>

However, I can not figure out why the $factor is obviously not set 
correctly or where (in the php code) it is set at all.

Thanks for any help,
Dirk



More information about the Cartoweb-users mailing list