Dedicated module for ol.proj.Units
This commit is contained in:
@@ -1,29 +1,14 @@
|
|||||||
goog.provide('ol.proj');
|
goog.provide('ol.proj');
|
||||||
goog.provide('ol.proj.METERS_PER_UNIT');
|
goog.provide('ol.proj.METERS_PER_UNIT');
|
||||||
goog.provide('ol.proj.Projection');
|
goog.provide('ol.proj.Projection');
|
||||||
goog.provide('ol.proj.Units');
|
|
||||||
|
|
||||||
goog.require('ol');
|
goog.require('ol');
|
||||||
goog.require('ol.extent');
|
goog.require('ol.extent');
|
||||||
goog.require('ol.obj');
|
goog.require('ol.obj');
|
||||||
|
goog.require('ol.proj.Units');
|
||||||
goog.require('ol.sphere.NORMAL');
|
goog.require('ol.sphere.NORMAL');
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Projection units: `'degrees'`, `'ft'`, `'m'`, `'pixels'`, `'tile-pixels'` or
|
|
||||||
* `'us-ft'`.
|
|
||||||
* @enum {string}
|
|
||||||
*/
|
|
||||||
ol.proj.Units = {
|
|
||||||
DEGREES: 'degrees',
|
|
||||||
FEET: 'ft',
|
|
||||||
METERS: 'm',
|
|
||||||
PIXELS: 'pixels',
|
|
||||||
TILE_PIXELS: 'tile-pixels',
|
|
||||||
USFEET: 'us-ft'
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Meters per unit lookup table.
|
* Meters per unit lookup table.
|
||||||
* @const
|
* @const
|
||||||
|
|||||||
16
src/ol/proj/units.js
Normal file
16
src/ol/proj/units.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
goog.provide('ol.proj.Units');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Projection units: `'degrees'`, `'ft'`, `'m'`, `'pixels'`, `'tile-pixels'` or
|
||||||
|
* `'us-ft'`.
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
|
ol.proj.Units = {
|
||||||
|
DEGREES: 'degrees',
|
||||||
|
FEET: 'ft',
|
||||||
|
METERS: 'm',
|
||||||
|
PIXELS: 'pixels',
|
||||||
|
TILE_PIXELS: 'tile-pixels',
|
||||||
|
USFEET: 'us-ft'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user