Ticket #1065: patchfile.patch
| File patchfile.patch, 0.9 kB (added by ianmayo, 1 year ago) |
|---|
-
lib/OpenLayers/Util.js
old new 871 871 /** 872 872 * Constant: INCHES_PER_UNIT 873 873 * {Object} Constant inches per unit -- borrowed from MapServer mapscale.c 874 * derivation of nautical miles from http://en.wikipedia.org/wiki/Nautical_mile 874 875 */ 875 876 OpenLayers.INCHES_PER_UNIT = { 876 877 'inches': 1.0, … … 878 879 'mi': 63360.0, 879 880 'm': 39.3701, 880 881 'km': 39370.1, 881 'dd': 4374754 882 'dd': 4374754, 883 'yd': 36, 882 884 }; 883 885 OpenLayers.INCHES_PER_UNIT["in"]= OpenLayers.INCHES_PER_UNIT.inches; 884 886 OpenLayers.INCHES_PER_UNIT["degrees"] = OpenLayers.INCHES_PER_UNIT.dd; 887 OpenLayers.INCHES_PER_UNIT["nmi"]= 1852 * OpenLayers.INCHES_PER_UNIT.m; 885 888 889 886 890 /** 887 891 * Constant: DOTS_PER_INCH 888 892 * {Integer} 72 (A sensible default)
