opengis
Version:
openlayer Map Component for Vue 2.0
17 lines (16 loc) • 448 B
JavaScript
export function createPoint (ol, options = {}) {
const { lng, lat } = options
return new ol.ol.geom.Point([lng, lat])
}
export function createPixel (options = {}) {
const { x, y } = options
return [x, y]
}
export function createBounds (options = {}) {
const { minx, miny, maxx, maxy } = options
return [minx, miny, maxx, maxy]
}
export function createSize (options = {}) {
const { width, height } = options
return [width, height]
}