openlayermap
Version:
openlayer Map Component for Vue 2.0
38 lines (32 loc) • 717 B
JavaScript
/**
* Created by FDD on 2017/8/29.
* @desc 相关静态常量
*/
const BASE_CLASS_NAME = {
CLASS_HIDDEN: 'hmap-hidden',
CLASS_SELECTABLE: 'hmap-selectable',
CLASS_UNSELECTABLE: 'hmap-unselectable',
CLASS_CONTROL: 'hmap-control'
}
let UNITS = {
DEGREES: 'degrees',
FEET: 'ft',
METERS: 'm',
PIXELS: 'pixels',
TILE_PIXELS: 'tile-pixels',
USFEET: 'us-ft',
METERS_PER_UNIT: {}
}
UNITS.METERS_PER_UNIT[UNITS.DEGREES] = 2 * Math.PI * 6370997 / 360
UNITS.METERS_PER_UNIT[UNITS.FEET] = 0.3048
UNITS.METERS_PER_UNIT[UNITS.METERS] = 1
UNITS.METERS_PER_UNIT[UNITS.USFEET] = 1200 / 3937
const OVERVIEWMAP = {
MIN_RATIO: 0.1,
MAX_RATIO: 0.75
}
export {
BASE_CLASS_NAME,
UNITS,
OVERVIEWMAP
}