[OpenLayers-Dev] Adding nautical miles and yards to units

Ian Mayo ian at planetmayo.com
Fri Oct 5 10:32:06 EDT 2007


Hi,
the maritime GIS community work in yards and nautical miles, so the
following lines could be added to util.js

OpenLayers.INCHES_PER_UNIT["yd"]= 36;		
// a yard is 36 inches
OpenLayers.INCHES_PER_UNIT["nmi"]= 1852 * OpenLayers.INCHES_PER_UNIT["m"];	
// a nautical mile is 1852 yards (http://en.wikipedia.org/wiki/Nautical_mile)

How do the community feel about adding maritime units to OpenLayers?

I appreciate developers can insert the above lines directly into the
custom applications, but suspect a better home is in the trunk.

thanks,
Ian.



More information about the Dev mailing list