OpenLayers OpenLayers

Ticket #1065: patchfile.patch

File patchfile.patch, 0.9 kB (added by ianmayo, 1 year ago)

patch file

  • lib/OpenLayers/Util.js

    old new  
    871871/** 
    872872 * Constant: INCHES_PER_UNIT 
    873873 * {Object} Constant inches per unit -- borrowed from MapServer mapscale.c 
     874 * derivation of nautical miles from http://en.wikipedia.org/wiki/Nautical_mile 
    874875 */ 
    875876OpenLayers.INCHES_PER_UNIT = {  
    876877    'inches': 1.0, 
     
    878879    'mi': 63360.0, 
    879880    'm': 39.3701, 
    880881    'km': 39370.1, 
    881     'dd': 4374754 
     882    'dd': 4374754, 
     883    'yd': 36, 
    882884}; 
    883885OpenLayers.INCHES_PER_UNIT["in"]= OpenLayers.INCHES_PER_UNIT.inches; 
    884886OpenLayers.INCHES_PER_UNIT["degrees"] = OpenLayers.INCHES_PER_UNIT.dd; 
     887OpenLayers.INCHES_PER_UNIT["nmi"]= 1852 * OpenLayers.INCHES_PER_UNIT.m;      
    885888 
     889 
    886890/**  
    887891 * Constant: DOTS_PER_INCH 
    888892 * {Integer} 72 (A sensible default)