[Cartoweb-users] statictools units
Oliver Christen
oliver.christen at camptocamp.com
Thu Feb 7 03:44:15 EST 2008
Hi
the unit were never intended to be parametrable
but you can certainly modify the javascript.
see functions Map.prototype.distance and Map.prototype.surface in dhtmlInit.js
all the calculation are done in metric value, so I think you only need to add a conversion formula just after the lines distance = ... and surface =
the string "km2" and "km" are automaticaly recovered from the template, so simply replace km2 and km in the template by whatever you want.
by the way, you can place the modified dhtmlInit.js in your project, this way only your project will bne affected by this modification.
regards
Oliver
----- Original Message -----
From: Kurt Menke
To: cartoweb-users at lists.maptools.org
Sent: Wednesday, February 06, 2008 7:54 PM
Subject: [Cartoweb-users] statictools units
Is there a way to configure the units that are reported by using the distance and surface tools? I'd like surface area to be reported in acres and distance in miles but haven't seen any options to change the units which by default are set to km2 and km.
Kurt
*************************************
Kurt A. Menke, GISP
GIS Analyst/Programmer
Earth Data Analysis Center
MSC01 1110
1 University of New Mexico
Albuquerque, NM 87131-0001
Ph: 505-277-3622 x239
Fax: 505-277-3614
------------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080207/692c58ae/attachment.html
More information about the Cartoweb-users
mailing list