UNPKG

openlayermap

Version:

openlayer Map Component for Vue 2.0

31 lines (30 loc) 489 B
export function createPoint(ol, options = {}) { const { lng, lat } = options return new 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] }