UNPKG

tchen-vuelayers

Version:

Web map Vue components with the power of OpenLayers

97 lines (89 loc) 1.94 kB
export const EPSG_4326 = 'EPSG:4326' export const EPSG_3857 = 'EPSG:3857' /** * @type {number} Default map max zoom */ export const MAX_ZOOM = 28 /** * @type {number} Default map min zoom */ export const MIN_ZOOM = 0 /** * @type {number} Default tile size */ export const TILE_SIZE = 256 /** * @type {string} */ export const TILE_FORMAT = 'png' /** * @type {number} Default zoom factor */ export const ZOOM_FACTOR = 2 /** * @type {number} */ export const CACHE_SIZE = 2048 /** * @type {number} */ export const PIXEL_RATIO = 1 /** * @type {string} */ export const CROSS_ORIGIN = 'anonymous' /** * @type {number} */ export const REPROJ_ERR_THRESHOLD = 0.5 /** * @type {number} Earth radius in meters */ export const EARTH_RADIUS = 6378137 export const RENDERER_TYPE = { CANVAS: 'canvas', WEBGL: 'webgl', } export const GEOMETRY_TYPE = { POINT: 'Point', LINE_STRING: 'LineString', POLYGON: 'Polygon', MULTI_POINT: 'MultiPoint', MULTI_LINE_STRING: 'MultiLineString', MULTI_POLYGON: 'MultiPolygon', GEOMETRY_COLLECTION: 'GeometryCollection', CIRCLE: 'Circle', } export const EXTENT_CORNER = { BOTTOM_LEFT: 'bottom-left', BOTTOM_RIGHT: 'bottom-right', TOP_LEFT: 'top-left', TOP_RIGHT: 'top-right', } export const PROJ_UNIT = { DEGREES: 'degrees', FEET: 'ft', METERS: 'm', PIXELS: 'pixels', TILE_PIXELS: 'tile-pixels', USFEET: 'us-ft', } export const OVERLAY_POSITIONING = { BOTTOM_LEFT: 'bottom-left', BOTTOM_CENTER: 'bottom-center', BOTTOM_RIGHT: 'bottom-right', CENTER_LEFT: 'center-left', CENTER_CENTER: 'center-center', CENTER_RIGHT: 'center-right', TOP_LEFT: 'top-left', TOP_CENTER: 'top-center', TOP_RIGHT: 'top-right', } /** * @type {string} Default WMS version */ export const WMS_VERSION = '1.3.0' export const WMTS_VERSION = '1.0.0' export const WMTS_REQUEST_ENCODING = 'KVP' export const WMTS_FORMAT = 'image/jpeg' export const LAYER_PROP = 'layer'