vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
11 lines (10 loc) • 441 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const proj = require("ol/proj");
function projectionFromProperties(projection) {
if (!projection) return;
if (typeof projection === "string") return projection;
if (projection instanceof proj.Projection) return projection;
return new proj.Projection(projection);
}
exports.default = projectionFromProperties;