vue-maplibre-gl
Advanced tools
Comparing version 5.4.1 to 5.4.2
/*! | ||
* vue-maplibre-gl v5.4.1 | ||
* vue-maplibre-gl v5.4.2 | ||
* (c) 2025 Volker Nauruhn | ||
* @license MIT | ||
*/ | ||
import { C as r, a as e, b as l, D as s, d, P as M } from "./draw.control-BeuCmc5N.js"; | ||
import { C as r, a as e, b as l, D as s, d, P as M } from "./draw.control-CCixCTEF.js"; | ||
export { | ||
@@ -8,0 +8,0 @@ r as CircleMode, |
/*! | ||
* vue-maplibre-gl v5.4.1 | ||
* vue-maplibre-gl v5.4.2 | ||
* (c) 2025 Volker Nauruhn | ||
@@ -10,4 +10,4 @@ * @license MIT | ||
import { reactive as q, defineComponent as p, markRaw as te, getCurrentInstance as P, shallowRef as Y, ref as _, provide as I, watch as c, onMounted as me, onBeforeUnmount as C, h as H, unref as G, nextTick as re, inject as g, createCommentVNode as O, Teleport as fe, createTextVNode as ae, isRef as D, warn as ge } from "vue"; | ||
import { m as x, i as W, c as T, e as J, s as Q, f as X, g as he, h as ye, u as B, j, k as Z, l as pe, M as K, B as oe, n as ie, A as z, o as Se } from "./draw.control-BeuCmc5N.js"; | ||
import { p as vt, C as bt, a as At, b as Rt, D as Ot, d as Mt, P as Et } from "./draw.control-BeuCmc5N.js"; | ||
import { m as x, i as W, c as T, e as J, s as Q, f as X, g as he, h as ye, u as B, j, k as Z, l as pe, M as K, B as oe, n as ie, A as z, o as Se } from "./draw.control-CCixCTEF.js"; | ||
import { p as vt, C as bt, a as At, b as Rt, D as Ot, d as Mt, P as Et } from "./draw.control-CCixCTEF.js"; | ||
import { Map as ve, AttributionControl as be, FullscreenControl as Ae, GeolocateControl as Re, NavigationControl as Oe, ScaleControl as Me, Marker as Ee } from "maplibre-gl"; | ||
@@ -14,0 +14,0 @@ import Le from "mitt"; |
{ | ||
"name": "vue-maplibre-gl", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "Vue 3 plugin for maplibre-gl", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,3 +52,9 @@ import type { DrawPlugin } from '@/plugins/draw/plugin.ts'; | ||
this.collection!.features[ 0 ].properties.tooSmall = areaSize < this.plugin.options.minArea.size; | ||
this.collection!.features[ 0 ].properties.minSizeLabel = this.plugin.options.minArea.label; | ||
// Polygon mode has at least 4 vertices on creation and will be always too small | ||
if (this.collection!.features[ 0 ].properties.meta !== 'polygon' || this.collection!.features[ 0 ].geometry.coordinates.length > 4) { | ||
this.collection!.features[ 0 ].properties.minSizeLabel = this.plugin.options.minArea.label; | ||
} else { | ||
this.collection!.features[ 0 ].properties.minSizeLabel = undefined; | ||
} | ||
} | ||
@@ -55,0 +61,0 @@ this.source.setData(this.collection ?? { type: 'FeatureCollection', features: [] }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1020916
9349