@watergis/maplibre-gl-terradraw 1.9.4 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maplibre-gl-terradraw.es.js +97 -98
- package/dist/maplibre-gl-terradraw.es.js.map +1 -1
- package/dist/maplibre-gl-terradraw.umd.js +2 -2
- package/dist/maplibre-gl-terradraw.umd.js.map +1 -1
- package/dist/types/constants/AvailableModes.d.ts.map +1 -0
- package/dist/types/constants/defaultControlOptions.d.ts.map +1 -0
- package/dist/types/constants/defaultMeasureControlOptions.d.ts.map +1 -0
- package/dist/types/constants/defaultMeasureUnitSymbols.d.ts.map +1 -0
- package/dist/types/constants/defaultValhallaControlOptions.d.ts.map +1 -0
- package/dist/types/constants/getDefaultModeOptions.d.ts +10 -0
- package/dist/types/constants/getDefaultModeOptions.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/controls/MaplibreMeasureControl.d.ts.map +1 -0
- package/dist/types/controls/MaplibreTerradrawControl.d.ts.map +1 -0
- package/dist/types/controls/MaplibreValhallaControl.d.ts.map +1 -0
- package/dist/types/controls/index.d.ts.map +1 -0
- package/dist/types/helpers/calcArea.d.ts.map +1 -0
- package/dist/types/helpers/calcDistance.d.ts.map +1 -0
- package/dist/types/helpers/capitalize.d.ts.map +1 -0
- package/dist/types/helpers/cleanMaplibreStyle.d.ts.map +1 -0
- package/dist/types/helpers/convertArea.d.ts.map +1 -0
- package/dist/types/helpers/convertDistance.d.ts.map +1 -0
- package/dist/types/helpers/convertElevation.d.ts.map +1 -0
- package/dist/types/helpers/debounce.d.ts.map +1 -0
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/types/helpers/memoryCache.d.ts.map +1 -0
- package/dist/types/helpers/modalDialog.d.ts.map +1 -0
- package/dist/types/helpers/queryElevationByPoint.d.ts.map +1 -0
- package/dist/types/helpers/queryElevationFromRasterDEM.d.ts.map +1 -0
- package/dist/types/helpers/roundFeatureCoordinates.d.ts +3 -0
- package/dist/types/helpers/roundFeatureCoordinates.d.ts.map +1 -0
- package/dist/types/helpers/valhallaIsochrone.d.ts.map +1 -0
- package/dist/types/helpers/valhallaRouting.d.ts.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/interfaces/ElevationCacheConfig.d.ts.map +1 -0
- package/dist/types/interfaces/EventArgs.d.ts.map +1 -0
- package/dist/types/interfaces/EventTypes.d.ts.map +1 -0
- package/dist/types/interfaces/MeasureControlOptions.d.ts.map +1 -0
- package/dist/types/interfaces/MeasureUnit.d.ts.map +1 -0
- package/dist/types/interfaces/ModeOptions.d.ts.map +1 -0
- package/dist/types/interfaces/TerradrawControlOptions.d.ts.map +1 -0
- package/dist/types/interfaces/TerradrawMode.d.ts.map +1 -0
- package/dist/types/interfaces/TerradrawModeClass.d.ts.map +1 -0
- package/dist/types/interfaces/TerrainSource.d.ts.map +1 -0
- package/dist/types/interfaces/ValhallaControlOptions.d.ts.map +1 -0
- package/dist/types/interfaces/index.d.ts.map +1 -0
- package/package.json +26 -26
- package/dist/types/lib/constants/AvailableModes.d.ts.map +0 -1
- package/dist/types/lib/constants/defaultControlOptions.d.ts.map +0 -1
- package/dist/types/lib/constants/defaultMeasureControlOptions.d.ts.map +0 -1
- package/dist/types/lib/constants/defaultMeasureUnitSymbols.d.ts.map +0 -1
- package/dist/types/lib/constants/defaultValhallaControlOptions.d.ts.map +0 -1
- package/dist/types/lib/constants/getDefaultModeOptions.d.ts +0 -3
- package/dist/types/lib/constants/getDefaultModeOptions.d.ts.map +0 -1
- package/dist/types/lib/constants/index.d.ts.map +0 -1
- package/dist/types/lib/controls/MaplibreMeasureControl.d.ts.map +0 -1
- package/dist/types/lib/controls/MaplibreTerradrawControl.d.ts.map +0 -1
- package/dist/types/lib/controls/MaplibreValhallaControl.d.ts.map +0 -1
- package/dist/types/lib/controls/index.d.ts.map +0 -1
- package/dist/types/lib/helpers/calcArea.d.ts.map +0 -1
- package/dist/types/lib/helpers/calcDistance.d.ts.map +0 -1
- package/dist/types/lib/helpers/capitalize.d.ts.map +0 -1
- package/dist/types/lib/helpers/cleanMaplibreStyle.d.ts.map +0 -1
- package/dist/types/lib/helpers/convertArea.d.ts.map +0 -1
- package/dist/types/lib/helpers/convertDistance.d.ts.map +0 -1
- package/dist/types/lib/helpers/convertElevation.d.ts.map +0 -1
- package/dist/types/lib/helpers/debounce.d.ts.map +0 -1
- package/dist/types/lib/helpers/index.d.ts.map +0 -1
- package/dist/types/lib/helpers/memoryCache.d.ts.map +0 -1
- package/dist/types/lib/helpers/modalDialog.d.ts.map +0 -1
- package/dist/types/lib/helpers/queryElevationByPoint.d.ts.map +0 -1
- package/dist/types/lib/helpers/queryElevationFromRasterDEM.d.ts.map +0 -1
- package/dist/types/lib/helpers/roundFeatureCoordinates.d.ts +0 -11
- package/dist/types/lib/helpers/roundFeatureCoordinates.d.ts.map +0 -1
- package/dist/types/lib/helpers/valhallaIsochrone.d.ts.map +0 -1
- package/dist/types/lib/helpers/valhallaRouting.d.ts.map +0 -1
- package/dist/types/lib/index.d.ts.map +0 -1
- package/dist/types/lib/interfaces/ElevationCacheConfig.d.ts.map +0 -1
- package/dist/types/lib/interfaces/EventArgs.d.ts.map +0 -1
- package/dist/types/lib/interfaces/EventTypes.d.ts.map +0 -1
- package/dist/types/lib/interfaces/MeasureControlOptions.d.ts.map +0 -1
- package/dist/types/lib/interfaces/MeasureUnit.d.ts.map +0 -1
- package/dist/types/lib/interfaces/ModeOptions.d.ts.map +0 -1
- package/dist/types/lib/interfaces/TerradrawControlOptions.d.ts.map +0 -1
- package/dist/types/lib/interfaces/TerradrawMode.d.ts.map +0 -1
- package/dist/types/lib/interfaces/TerradrawModeClass.d.ts.map +0 -1
- package/dist/types/lib/interfaces/TerrainSource.d.ts.map +0 -1
- package/dist/types/lib/interfaces/ValhallaControlOptions.d.ts.map +0 -1
- package/dist/types/lib/interfaces/index.d.ts.map +0 -1
- package/dist/types/setupTest.d.ts +0 -63
- package/dist/types/setupTest.d.ts.map +0 -1
- /package/dist/types/{lib/constants → constants}/AvailableModes.d.ts +0 -0
- /package/dist/types/{lib/constants → constants}/defaultControlOptions.d.ts +0 -0
- /package/dist/types/{lib/constants → constants}/defaultMeasureControlOptions.d.ts +0 -0
- /package/dist/types/{lib/constants → constants}/defaultMeasureUnitSymbols.d.ts +0 -0
- /package/dist/types/{lib/constants → constants}/defaultValhallaControlOptions.d.ts +0 -0
- /package/dist/types/{lib/constants → constants}/index.d.ts +0 -0
- /package/dist/types/{lib/controls → controls}/MaplibreMeasureControl.d.ts +0 -0
- /package/dist/types/{lib/controls → controls}/MaplibreTerradrawControl.d.ts +0 -0
- /package/dist/types/{lib/controls → controls}/MaplibreValhallaControl.d.ts +0 -0
- /package/dist/types/{lib/controls → controls}/index.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/calcArea.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/calcDistance.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/capitalize.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/cleanMaplibreStyle.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/convertArea.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/convertDistance.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/convertElevation.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/debounce.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/index.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/memoryCache.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/modalDialog.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/queryElevationByPoint.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/queryElevationFromRasterDEM.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/valhallaIsochrone.d.ts +0 -0
- /package/dist/types/{lib/helpers → helpers}/valhallaRouting.d.ts +0 -0
- /package/dist/types/{lib/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/ElevationCacheConfig.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/EventArgs.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/EventTypes.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/MeasureControlOptions.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/MeasureUnit.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/ModeOptions.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/TerradrawControlOptions.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/TerradrawMode.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/TerradrawModeClass.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/TerrainSource.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/ValhallaControlOptions.d.ts +0 -0
- /package/dist/types/{lib/interfaces → interfaces}/index.d.ts +0 -0
|
@@ -3341,7 +3341,7 @@ class io extends Ji.TerraDrawBaseAdapter {
|
|
|
3341
3341
|
this._renderBeforeLayerId && (this._map.moveLayer(r, this._renderBeforeLayerId), this._map.moveLayer(o, r), this._map.moveLayer(i + "-outline", o), this._map.moveLayer(i, o)), (t = this._currentModeCallbacks) != null && t.onReady && ((n = this._currentModeCallbacks) == null || n.onReady());
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
const
|
|
3344
|
+
const Qo = [
|
|
3345
3345
|
"render",
|
|
3346
3346
|
"point",
|
|
3347
3347
|
"marker",
|
|
@@ -3358,7 +3358,7 @@ const Zo = [
|
|
|
3358
3358
|
"delete-selection",
|
|
3359
3359
|
"delete",
|
|
3360
3360
|
"download"
|
|
3361
|
-
],
|
|
3361
|
+
], er = [
|
|
3362
3362
|
"render",
|
|
3363
3363
|
"linestring",
|
|
3364
3364
|
"point",
|
|
@@ -4058,7 +4058,10 @@ Alt. `,
|
|
|
4058
4058
|
"text-halo-color": "rgb(255, 255, 255)"
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
|
-
}, so = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20inkscape:version='1.0%20(4035a4fb49,%202020-05-01)'%20sodipodi:docname='poi.svg'%20id='svg4460'%20height='100'%20width='100'%20version='1.1'%3e%3csodipodi:namedview%20inkscape:document-rotation='0'%20inkscape:current-layer='svg4460'%20inkscape:window-maximized='1'%20inkscape:window-y='-8'%20inkscape:window-x='-8'%20inkscape:cy='70.031285'%20inkscape:cx='-78.460726'%20inkscape:zoom='2.02'%20showgrid='false'%20id='namedview11'%20inkscape:window-height='1017'%20inkscape:window-width='1920'%20inkscape:pageshadow='2'%20inkscape:pageopacity='0'%20guidetolerance='10'%20gridtolerance='10'%20objecttolerance='10'%20borderopacity='1'%20bordercolor='%23666666'%20pagecolor='%23ffffff'%20/%3e%3cdefs%20id='defs4462'%20/%3e%3cmetadata%20id='metadata4465'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cpath%20d='M%2050.001528,3.3861402e-7%20C%2030.763177,3.3861402e-7%2015,15.718144%2015,34.901534%20c%200,7.432782%202.373565,14.339962%206.391689,20.019029%20l%2024.338528,42.073163%20c%203.40849,4.452814%205.674917,3.607154%208.509014,-0.23458%20L%2081.083105,51.075788%20C%2081.625418,50.0948%2082.050328,49.050173%2082.421327,47.983517%2084.078241,43.936622%2085.000002,39.521943%2085,34.901534%2085,15.718144%2069.23988,3.3861402e-7%2050.001528,3.3861402e-7%20Z%20m%200,16.35400066138598%20c%2010.359296,0%2018.597616,8.21783%2018.597618,18.547533%200,10.329703%20-8.238322,18.544487%20-18.597618,18.544487%20-10.359299,0%20-18.600672,-8.214784%20-18.600672,-18.544487%200,-10.329703%208.241373,-18.547533%2018.600672,-18.547533%20z'%20style='fill:%233FB1CE;stroke-width:4.26019'%20id='path4135'%20/%3e%3c/svg%3e", no = () =>
|
|
4061
|
+
}, so = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20inkscape:version='1.0%20(4035a4fb49,%202020-05-01)'%20sodipodi:docname='poi.svg'%20id='svg4460'%20height='100'%20width='100'%20version='1.1'%3e%3csodipodi:namedview%20inkscape:document-rotation='0'%20inkscape:current-layer='svg4460'%20inkscape:window-maximized='1'%20inkscape:window-y='-8'%20inkscape:window-x='-8'%20inkscape:cy='70.031285'%20inkscape:cx='-78.460726'%20inkscape:zoom='2.02'%20showgrid='false'%20id='namedview11'%20inkscape:window-height='1017'%20inkscape:window-width='1920'%20inkscape:pageshadow='2'%20inkscape:pageopacity='0'%20guidetolerance='10'%20gridtolerance='10'%20objecttolerance='10'%20borderopacity='1'%20bordercolor='%23666666'%20pagecolor='%23ffffff'%20/%3e%3cdefs%20id='defs4462'%20/%3e%3cmetadata%20id='metadata4465'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cpath%20d='M%2050.001528,3.3861402e-7%20C%2030.763177,3.3861402e-7%2015,15.718144%2015,34.901534%20c%200,7.432782%202.373565,14.339962%206.391689,20.019029%20l%2024.338528,42.073163%20c%203.40849,4.452814%205.674917,3.607154%208.509014,-0.23458%20L%2081.083105,51.075788%20C%2081.625418,50.0948%2082.050328,49.050173%2082.421327,47.983517%2084.078241,43.936622%2085.000002,39.521943%2085,34.901534%2085,15.718144%2069.23988,3.3861402e-7%2050.001528,3.3861402e-7%20Z%20m%200,16.35400066138598%20c%2010.359296,0%2018.597616,8.21783%2018.597618,18.547533%200,10.329703%20-8.238322,18.544487%20-18.597618,18.544487%20-10.359299,0%20-18.600672,-8.214784%20-18.600672,-18.544487%200,-10.329703%208.241373,-18.547533%2018.600672,-18.547533%20z'%20style='fill:%233FB1CE;stroke-width:4.26019'%20id='path4135'%20/%3e%3c/svg%3e", no = (s, e) => {
|
|
4062
|
+
const t = e.updateType;
|
|
4063
|
+
return t === "finish" || t === "commit" ? Vi(s) : { valid: !0 };
|
|
4064
|
+
}, ao = () => ({
|
|
4062
4065
|
render: new ee({
|
|
4063
4066
|
modeName: "render",
|
|
4064
4067
|
styles: {}
|
|
@@ -4079,12 +4082,7 @@ Alt. `,
|
|
|
4079
4082
|
}),
|
|
4080
4083
|
polygon: new Mt({
|
|
4081
4084
|
editable: !0,
|
|
4082
|
-
|
|
4083
|
-
// @ts-ignore
|
|
4084
|
-
validation: (e, t) => {
|
|
4085
|
-
const i = t.updateType;
|
|
4086
|
-
return i === "finish" || i === "commit" ? Vi(e) : { valid: !0 };
|
|
4087
|
-
}
|
|
4085
|
+
validation: no
|
|
4088
4086
|
}),
|
|
4089
4087
|
rectangle: new Lt(),
|
|
4090
4088
|
"angled-rectangle": new Bt(),
|
|
@@ -4222,7 +4220,7 @@ Alt. `,
|
|
|
4222
4220
|
styles: {}
|
|
4223
4221
|
})
|
|
4224
4222
|
});
|
|
4225
|
-
var W = 63710088e-1,
|
|
4223
|
+
var W = 63710088e-1, lo = {
|
|
4226
4224
|
centimeters: W * 100,
|
|
4227
4225
|
centimetres: W * 100,
|
|
4228
4226
|
degrees: 360 / (2 * Math.PI),
|
|
@@ -4239,11 +4237,11 @@ var W = 63710088e-1, ao = {
|
|
|
4239
4237
|
radians: 1,
|
|
4240
4238
|
yards: W * 1.0936
|
|
4241
4239
|
};
|
|
4242
|
-
function
|
|
4240
|
+
function co(s, e, t = {}) {
|
|
4243
4241
|
const i = { type: "Feature" };
|
|
4244
4242
|
return (t.id === 0 || t.id) && (i.id = t.id), t.bbox && (i.bbox = t.bbox), i.properties = e || {}, i.geometry = s, i;
|
|
4245
4243
|
}
|
|
4246
|
-
function
|
|
4244
|
+
function ho(s, e, t = {}) {
|
|
4247
4245
|
if (!s)
|
|
4248
4246
|
throw new Error("coordinates is required");
|
|
4249
4247
|
if (!Array.isArray(s))
|
|
@@ -4252,13 +4250,13 @@ function co(s, e, t = {}) {
|
|
|
4252
4250
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
4253
4251
|
if (!ft(s[0]) || !ft(s[1]))
|
|
4254
4252
|
throw new Error("coordinates must contain numbers");
|
|
4255
|
-
return
|
|
4253
|
+
return co({
|
|
4256
4254
|
type: "Point",
|
|
4257
4255
|
coordinates: s
|
|
4258
4256
|
}, e, t);
|
|
4259
4257
|
}
|
|
4260
|
-
function
|
|
4261
|
-
const t =
|
|
4258
|
+
function uo(s, e = "kilometers") {
|
|
4259
|
+
const t = lo[e];
|
|
4262
4260
|
if (!t)
|
|
4263
4261
|
throw new Error(e + " units is invalid");
|
|
4264
4262
|
return s * t;
|
|
@@ -4356,7 +4354,7 @@ function zt(s, e, t) {
|
|
|
4356
4354
|
}
|
|
4357
4355
|
}
|
|
4358
4356
|
}
|
|
4359
|
-
function
|
|
4357
|
+
function po(s, e) {
|
|
4360
4358
|
var t, i, o, r, n, a, l, d, c, h, u = 0, p = s.type === "FeatureCollection", g = s.type === "Feature", y = p ? s.features.length : 1;
|
|
4361
4359
|
for (t = 0; t < y; t++) {
|
|
4362
4360
|
for (a = p ? s.features[t].geometry : g ? s.geometry : s, d = p ? s.features[t].properties : g ? s.properties : {}, c = p ? s.features[t].bbox : g ? s.bbox : void 0, h = p ? s.features[t].id : g ? s.id : void 0, l = a ? a.type === "GeometryCollection" : !1, n = l ? a.geometries.length : 1, o = 0; o < n; o++) {
|
|
@@ -4407,9 +4405,9 @@ function uo(s, e) {
|
|
|
4407
4405
|
u++;
|
|
4408
4406
|
}
|
|
4409
4407
|
}
|
|
4410
|
-
function
|
|
4408
|
+
function go(s, e, t) {
|
|
4411
4409
|
var i = t;
|
|
4412
|
-
return
|
|
4410
|
+
return po(
|
|
4413
4411
|
s,
|
|
4414
4412
|
function(o, r, n, a, l) {
|
|
4415
4413
|
r === 0 && t === void 0 ? i = o : i = e(
|
|
@@ -4423,14 +4421,14 @@ function po(s, e, t) {
|
|
|
4423
4421
|
}
|
|
4424
4422
|
), i;
|
|
4425
4423
|
}
|
|
4426
|
-
function
|
|
4427
|
-
return
|
|
4424
|
+
function yo(s) {
|
|
4425
|
+
return go(
|
|
4428
4426
|
s,
|
|
4429
|
-
(e, t) => e +
|
|
4427
|
+
(e, t) => e + fo(t),
|
|
4430
4428
|
0
|
|
4431
4429
|
);
|
|
4432
4430
|
}
|
|
4433
|
-
function
|
|
4431
|
+
function fo(s) {
|
|
4434
4432
|
let e = 0, t;
|
|
4435
4433
|
switch (s.type) {
|
|
4436
4434
|
case "Polygon":
|
|
@@ -4456,7 +4454,7 @@ function mt(s) {
|
|
|
4456
4454
|
}
|
|
4457
4455
|
return e;
|
|
4458
4456
|
}
|
|
4459
|
-
var
|
|
4457
|
+
var mo = W * W / 2, ke = Math.PI / 180;
|
|
4460
4458
|
function vt(s) {
|
|
4461
4459
|
const e = s.length - 1;
|
|
4462
4460
|
if (e <= 2) return 0;
|
|
@@ -4465,10 +4463,10 @@ function vt(s) {
|
|
|
4465
4463
|
const o = s[i], r = s[i + 1 === e ? 0 : i + 1], n = s[i + 2 >= e ? (i + 2) % e : i + 2], a = o[0] * ke, l = r[1] * ke, d = n[0] * ke;
|
|
4466
4464
|
t += (d - a) * Math.sin(l), i++;
|
|
4467
4465
|
}
|
|
4468
|
-
return t *
|
|
4466
|
+
return t * mo;
|
|
4469
4467
|
}
|
|
4470
|
-
var
|
|
4471
|
-
const
|
|
4468
|
+
var vo = yo;
|
|
4469
|
+
const Co = (s, e, t = "auto", i = q) => {
|
|
4472
4470
|
const o = ["square meters", "square kilometers", "ares", "hectares"], r = ["square feet", "square yards", "acres", "square miles"];
|
|
4473
4471
|
let n = t;
|
|
4474
4472
|
if (t !== "auto") {
|
|
@@ -4516,9 +4514,9 @@ const vo = (s, e, t = "auto", i = q) => {
|
|
|
4516
4514
|
area: i,
|
|
4517
4515
|
unit: o
|
|
4518
4516
|
};
|
|
4519
|
-
},
|
|
4517
|
+
}, Po = (s, e, t, i, o) => {
|
|
4520
4518
|
if (s.geometry.type !== "Polygon") return s;
|
|
4521
|
-
const r =
|
|
4519
|
+
const r = vo(s.geometry), n = Co(r, e, i, o);
|
|
4522
4520
|
return n.area = parseFloat(n.area.toFixed(t)), s.properties.area = n.area, s.properties.unit = n.unit, s;
|
|
4523
4521
|
};
|
|
4524
4522
|
function Ct(s) {
|
|
@@ -4534,14 +4532,14 @@ function Ct(s) {
|
|
|
4534
4532
|
return [...s];
|
|
4535
4533
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
4536
4534
|
}
|
|
4537
|
-
function
|
|
4535
|
+
function Io(s, e, t = {}) {
|
|
4538
4536
|
var i = Ct(s), o = Ct(e), r = Ce(o[1] - i[1]), n = Ce(o[0] - i[0]), a = Ce(i[1]), l = Ce(o[1]), d = Math.pow(Math.sin(r / 2), 2) + Math.pow(Math.sin(n / 2), 2) * Math.cos(a) * Math.cos(l);
|
|
4539
|
-
return
|
|
4537
|
+
return uo(
|
|
4540
4538
|
2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d)),
|
|
4541
4539
|
t.units
|
|
4542
4540
|
);
|
|
4543
4541
|
}
|
|
4544
|
-
var
|
|
4542
|
+
var So = Io;
|
|
4545
4543
|
const _e = (s, e = "metric", t = "auto", i = q) => {
|
|
4546
4544
|
const o = ["centimeter", "meter", "kilometer"], r = ["inch", "foot", "mile"];
|
|
4547
4545
|
let n = t;
|
|
@@ -4596,13 +4594,13 @@ const _e = (s, e = "metric", t = "auto", i = q) => {
|
|
|
4596
4594
|
break;
|
|
4597
4595
|
}
|
|
4598
4596
|
return i;
|
|
4599
|
-
},
|
|
4597
|
+
}, xo = (s, e, t, i, o, r, n, a) => {
|
|
4600
4598
|
if (s.geometry.type !== "LineString") return s;
|
|
4601
4599
|
const l = s.geometry.coordinates;
|
|
4602
4600
|
let d = 0;
|
|
4603
4601
|
const c = [];
|
|
4604
4602
|
for (let u = 0; u < l.length - 1; u++) {
|
|
4605
|
-
const p = l[u], g = l[u + 1], y =
|
|
4603
|
+
const p = l[u], g = l[u + 1], y = So(p, g, { units: e === "metric" ? "kilometers" : "miles" });
|
|
4606
4604
|
d += y;
|
|
4607
4605
|
const f = JSON.parse(JSON.stringify(s));
|
|
4608
4606
|
if (f.id = `${f.id}-${u}`, f.geometry.coordinates = [p, g], f.properties.originalId = s.id, f.properties.distance = y, f.properties.total = d, n === !0 && a === void 0) {
|
|
@@ -4660,11 +4658,11 @@ const _e = (s, e = "metric", t = "auto", i = q) => {
|
|
|
4660
4658
|
"{prefix}-linestring",
|
|
4661
4659
|
"{prefix}-polygon",
|
|
4662
4660
|
"{prefix}-polygon-outline"
|
|
4663
|
-
],
|
|
4661
|
+
], tr = [
|
|
4664
4662
|
...re,
|
|
4665
4663
|
Ee.polygonLayerSpec?.source,
|
|
4666
4664
|
Ee.lineLayerLabelSpec?.source
|
|
4667
|
-
],
|
|
4665
|
+
], ir = [
|
|
4668
4666
|
...re,
|
|
4669
4667
|
z.routingLineLayerNodeLabelSpec?.source,
|
|
4670
4668
|
z.routingLineLayerNodeSpec?.source,
|
|
@@ -4763,7 +4761,7 @@ class $t {
|
|
|
4763
4761
|
};
|
|
4764
4762
|
}
|
|
4765
4763
|
}
|
|
4766
|
-
class
|
|
4764
|
+
class Eo {
|
|
4767
4765
|
className;
|
|
4768
4766
|
dialog;
|
|
4769
4767
|
title;
|
|
@@ -4850,7 +4848,7 @@ class xo {
|
|
|
4850
4848
|
}), o;
|
|
4851
4849
|
}
|
|
4852
4850
|
}
|
|
4853
|
-
const
|
|
4851
|
+
const Oo = (s, e, t, i, o = "metric", r = q) => {
|
|
4854
4852
|
if (s.geometry.type !== "Point") return s;
|
|
4855
4853
|
const n = s.geometry.coordinates;
|
|
4856
4854
|
if (t === !0) {
|
|
@@ -4878,31 +4876,31 @@ const Eo = (s, e, t, i, o = "metric", r = q) => {
|
|
|
4878
4876
|
}
|
|
4879
4877
|
return s;
|
|
4880
4878
|
};
|
|
4881
|
-
var
|
|
4882
|
-
function
|
|
4879
|
+
var wo = Object.defineProperty, bo = (s, e, t) => e in s ? wo(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, le = (s, e, t) => bo(s, typeof e != "symbol" ? e + "" : e, t), Oe = 2 * Math.PI * 6378137 / 2;
|
|
4880
|
+
function Fo(s) {
|
|
4883
4881
|
return s = s || 256, 2 * Math.PI * 6378137 / s;
|
|
4884
4882
|
}
|
|
4885
|
-
function
|
|
4883
|
+
function Mo(s, e, t = { enable: !0, decimal: 1 }) {
|
|
4886
4884
|
s = He(s);
|
|
4887
4885
|
var i = s[0], o = s[1], r = i * Oe / 180, n = Math.log(Math.tan((90 + o) * Math.PI / 360)) / (Math.PI / 180);
|
|
4888
4886
|
return n = n * Oe / 180, t.enable && (r = Number(r.toFixed(t.decimal)), n = Number(n.toFixed(t.decimal))), [r, n];
|
|
4889
4887
|
}
|
|
4890
|
-
function
|
|
4891
|
-
var i = s[0], o = s[1], r =
|
|
4888
|
+
function Lo(s, e, t) {
|
|
4889
|
+
var i = s[0], o = s[1], r = Wo(e, t), n = (i + Oe) / r, a = (o + Oe) / r;
|
|
4892
4890
|
return [n, a, e];
|
|
4893
4891
|
}
|
|
4894
4892
|
function Yt(s, e, t) {
|
|
4895
4893
|
s = He(s);
|
|
4896
|
-
var i =
|
|
4897
|
-
return
|
|
4894
|
+
var i = Mo(s), o = Lo(i, e);
|
|
4895
|
+
return ko(o);
|
|
4898
4896
|
}
|
|
4899
|
-
function
|
|
4897
|
+
function Do(s, e, t) {
|
|
4900
4898
|
if (s = He(s), e === 0)
|
|
4901
4899
|
return [0, 0, 0];
|
|
4902
4900
|
var i = Yt(s, e);
|
|
4903
|
-
return
|
|
4901
|
+
return _o(i);
|
|
4904
4902
|
}
|
|
4905
|
-
function
|
|
4903
|
+
function ko(s, e, t) {
|
|
4906
4904
|
e = e || 256;
|
|
4907
4905
|
var i = s[0], o = s[1], r = s[2];
|
|
4908
4906
|
if (r === 0) return [0, 0, 0];
|
|
@@ -4910,22 +4908,22 @@ function Do(s, e, t) {
|
|
|
4910
4908
|
var n = Math.ceil(i / e) - 1, a = Math.ceil(o / e) - 1;
|
|
4911
4909
|
return n < 0 && (n = 0), a < 0 && (a = 0), [n, a, r];
|
|
4912
4910
|
}
|
|
4913
|
-
function
|
|
4914
|
-
|
|
4911
|
+
function _o(s, e) {
|
|
4912
|
+
No(s);
|
|
4915
4913
|
var t = s[0], i = s[1], o = s[2];
|
|
4916
4914
|
if (o === 0)
|
|
4917
4915
|
return [0, 0, 0];
|
|
4918
4916
|
var r = t, n = Math.pow(2, o) - 1 - i;
|
|
4919
4917
|
return [r, n, o];
|
|
4920
4918
|
}
|
|
4921
|
-
function
|
|
4919
|
+
function No(s, e) {
|
|
4922
4920
|
var t = s[0], i = s[1], o = s[2];
|
|
4923
4921
|
if (o == null) throw new Error("<zoom> is required");
|
|
4924
4922
|
if (t == null) throw new Error("<x> is required");
|
|
4925
4923
|
if (i == null) throw new Error("<y> is required");
|
|
4926
|
-
return o = Kt(o), s =
|
|
4924
|
+
return o = Kt(o), s = To(s), s;
|
|
4927
4925
|
}
|
|
4928
|
-
function
|
|
4926
|
+
function To(s) {
|
|
4929
4927
|
var e = s[0], t = s[1], i = s[2], o = Math.pow(2, i);
|
|
4930
4928
|
return e = e % o, e < 0 && (e = e + o), [e, t, i];
|
|
4931
4929
|
}
|
|
@@ -4940,17 +4938,17 @@ function Kt(s) {
|
|
|
4940
4938
|
return s;
|
|
4941
4939
|
}
|
|
4942
4940
|
function He(s, e) {
|
|
4943
|
-
var t =
|
|
4941
|
+
var t = jo(s[0]), i = Bo(s[1]);
|
|
4944
4942
|
return i > 85 && (i = 85), i < -85 && (i = -85), [t, i];
|
|
4945
4943
|
}
|
|
4946
|
-
function
|
|
4947
|
-
return
|
|
4944
|
+
function Wo(s, e) {
|
|
4945
|
+
return Fo(e) / Math.pow(2, s);
|
|
4948
4946
|
}
|
|
4949
|
-
function
|
|
4947
|
+
function Bo(s) {
|
|
4950
4948
|
if (s == null) throw new Error("lat is required");
|
|
4951
4949
|
return (s > 90 || s < -90) && (s = s % 180, s > 90 && (s = -180 + s), s < -90 && (s = 180 + s), s === 0 && (s = 0)), s;
|
|
4952
4950
|
}
|
|
4953
|
-
function
|
|
4951
|
+
function jo(s) {
|
|
4954
4952
|
if (s == null) throw new Error("lng is required");
|
|
4955
4953
|
return (s > 180 || s < -180) && (s = s % 360, s > 180 && (s = -360 + s), s < -180 && (s = 360 + s), s === 0 && (s = 0)), s;
|
|
4956
4954
|
}
|
|
@@ -4979,7 +4977,7 @@ class Ht {
|
|
|
4979
4977
|
const r = e[0], n = e[1];
|
|
4980
4978
|
let a = t;
|
|
4981
4979
|
t > this.maxzoom ? a = this.maxzoom : t < this.minzoom && (a = this.minzoom);
|
|
4982
|
-
const l = this.tms ? Yt([r, n], a) :
|
|
4980
|
+
const l = this.tms ? Yt([r, n], a) : Do([r, n], a), d = this.url.replace(/{x}/g, l[0].toString()).replace(/{y}/g, l[1].toString()).replace(/{z}/g, l[2].toString());
|
|
4983
4981
|
let c = this.getUrlExtension(d);
|
|
4984
4982
|
switch (c || (c = "png"), c) {
|
|
4985
4983
|
case "png":
|
|
@@ -5081,7 +5079,7 @@ class Ht {
|
|
|
5081
5079
|
return i * Math.atan(0.5 * (Math.exp(o) - Math.exp(-o)));
|
|
5082
5080
|
}
|
|
5083
5081
|
}
|
|
5084
|
-
class
|
|
5082
|
+
class Uo extends Ht {
|
|
5085
5083
|
/**
|
|
5086
5084
|
* Constructor
|
|
5087
5085
|
* @param url URL for terrain RGB raster tilesets
|
|
@@ -5113,7 +5111,7 @@ class jo extends Ht {
|
|
|
5113
5111
|
return -1e4 + (e * 256 * 256 + t * 256 + i) * 0.1;
|
|
5114
5112
|
}
|
|
5115
5113
|
}
|
|
5116
|
-
class
|
|
5114
|
+
class Ro extends Ht {
|
|
5117
5115
|
/**
|
|
5118
5116
|
* Constructor
|
|
5119
5117
|
* @param url URL for terrarium raster tilesets
|
|
@@ -5147,7 +5145,7 @@ class Uo extends Ht {
|
|
|
5147
5145
|
return parseInt(o.toFixed(0));
|
|
5148
5146
|
}
|
|
5149
5147
|
}
|
|
5150
|
-
const
|
|
5148
|
+
const Ao = (s, e = 8) => {
|
|
5151
5149
|
const [t, i] = s, o = Math.pow(10, e), r = Math.round(t * o) / o, n = Math.round(i * o) / o;
|
|
5152
5150
|
return `${r},${n}`;
|
|
5153
5151
|
}, It = async (s, e, t, i, o = "metric", r = q) => {
|
|
@@ -5166,13 +5164,13 @@ const Ro = (s, e = 8) => {
|
|
|
5166
5164
|
const h = e.url, u = e.encoding ?? "mapbox", p = e.tileSize ?? 512, g = e.minzoom ?? 5;
|
|
5167
5165
|
c = e.maxzoom ?? 15;
|
|
5168
5166
|
const y = e.tms ?? !1;
|
|
5169
|
-
d = u === "mapbox" ? new
|
|
5167
|
+
d = u === "mapbox" ? new Uo(h, p, g, c, y) : new Ro(h, p, g, c, y);
|
|
5170
5168
|
}
|
|
5171
5169
|
for (const h of s)
|
|
5172
5170
|
n.push(
|
|
5173
5171
|
new Promise((u) => {
|
|
5174
5172
|
h.geometry.type !== "Point" && u(h);
|
|
5175
|
-
const p = h.geometry.coordinates, g =
|
|
5173
|
+
const p = h.geometry.coordinates, g = Ao(p, a.precision);
|
|
5176
5174
|
if (l) {
|
|
5177
5175
|
const y = l.get(g);
|
|
5178
5176
|
if (y !== void 0) {
|
|
@@ -5205,7 +5203,7 @@ const Ro = (s, e = 8) => {
|
|
|
5205
5203
|
})
|
|
5206
5204
|
);
|
|
5207
5205
|
return await Promise.all(n);
|
|
5208
|
-
},
|
|
5206
|
+
}, or = (s, e = 9) => {
|
|
5209
5207
|
function t(o) {
|
|
5210
5208
|
return [Number(o[0].toFixed(e)), Number(o[1].toFixed(e))];
|
|
5211
5209
|
}
|
|
@@ -5239,11 +5237,11 @@ const Ro = (s, e = 8) => {
|
|
|
5239
5237
|
...o,
|
|
5240
5238
|
geometry: i(o.geometry)
|
|
5241
5239
|
}));
|
|
5242
|
-
},
|
|
5240
|
+
}, Go = [
|
|
5243
5241
|
{ value: "time", label: "Time" },
|
|
5244
5242
|
{ value: "distance", label: "Distance" }
|
|
5245
5243
|
];
|
|
5246
|
-
class
|
|
5244
|
+
class zo {
|
|
5247
5245
|
url;
|
|
5248
5246
|
/**
|
|
5249
5247
|
* Constructor
|
|
@@ -5279,11 +5277,11 @@ const je = [
|
|
|
5279
5277
|
{ value: "pedestrian", label: "Pedestrian" },
|
|
5280
5278
|
{ value: "bicycle", label: "Bicycle" },
|
|
5281
5279
|
{ value: "auto", label: "Car" }
|
|
5282
|
-
],
|
|
5280
|
+
], Vo = [
|
|
5283
5281
|
{ value: "kilometers", label: "km" },
|
|
5284
5282
|
{ value: "miles", label: "mile" }
|
|
5285
5283
|
];
|
|
5286
|
-
class
|
|
5284
|
+
class $o {
|
|
5287
5285
|
tripData = [];
|
|
5288
5286
|
/**
|
|
5289
5287
|
* get the raw trip data from the valhalla routing API.
|
|
@@ -5504,7 +5502,7 @@ class Xt {
|
|
|
5504
5502
|
if (this.options && this.options.modes && this.options.modes.length === 0)
|
|
5505
5503
|
throw new Error("At least a mode must be enabled.");
|
|
5506
5504
|
this.map = e;
|
|
5507
|
-
const t =
|
|
5505
|
+
const t = ao(), i = [];
|
|
5508
5506
|
return this.options?.modes?.forEach((o) => {
|
|
5509
5507
|
if (this.options.modeOptions && this.options.modeOptions[o]) {
|
|
5510
5508
|
const r = this.options.modeOptions[o];
|
|
@@ -5766,16 +5764,16 @@ class Xt {
|
|
|
5766
5764
|
}
|
|
5767
5765
|
}
|
|
5768
5766
|
}
|
|
5769
|
-
function
|
|
5767
|
+
function Yo(s, e = {}) {
|
|
5770
5768
|
let t = 0, i = 0, o = 0;
|
|
5771
5769
|
return zt(
|
|
5772
5770
|
s,
|
|
5773
5771
|
function(r) {
|
|
5774
5772
|
t += r[0], i += r[1], o++;
|
|
5775
5773
|
}
|
|
5776
|
-
),
|
|
5774
|
+
), ho([t / o, i / o], e.properties);
|
|
5777
5775
|
}
|
|
5778
|
-
class
|
|
5776
|
+
class rr extends Xt {
|
|
5779
5777
|
measureOptions;
|
|
5780
5778
|
elevationCache;
|
|
5781
5779
|
/**
|
|
@@ -6219,7 +6217,7 @@ class or extends Xt {
|
|
|
6219
6217
|
(l) => l.properties?.originalId !== e
|
|
6220
6218
|
));
|
|
6221
6219
|
const a = JSON.parse(JSON.stringify(r));
|
|
6222
|
-
a.id = a.id + "-area-label", a.geometry =
|
|
6220
|
+
a.id = a.id + "-area-label", a.geometry = Yo(r.geometry).geometry, a.properties.originalId = r.id, r = Po(
|
|
6223
6221
|
r,
|
|
6224
6222
|
this.measureUnitType,
|
|
6225
6223
|
this.areaPrecision,
|
|
@@ -6258,7 +6256,7 @@ class or extends Xt {
|
|
|
6258
6256
|
if (r) {
|
|
6259
6257
|
typeof r.data != "string" && r.data.type === "FeatureCollection" && (r.data.features = r.data.features.filter(
|
|
6260
6258
|
(a) => a.properties?.originalId !== e
|
|
6261
|
-
)), o =
|
|
6259
|
+
)), o = xo(
|
|
6262
6260
|
o,
|
|
6263
6261
|
this.measureUnitType,
|
|
6264
6262
|
this.distancePrecision,
|
|
@@ -6319,7 +6317,7 @@ class or extends Xt {
|
|
|
6319
6317
|
elevation: void 0,
|
|
6320
6318
|
elevationUnit: void 0
|
|
6321
6319
|
};
|
|
6322
|
-
this.computeElevation && (this.measureOptions.terrainSource === void 0 ? o =
|
|
6320
|
+
this.computeElevation && (this.measureOptions.terrainSource === void 0 ? o = Oo(
|
|
6323
6321
|
o,
|
|
6324
6322
|
this.map,
|
|
6325
6323
|
this.computeElevation,
|
|
@@ -6356,7 +6354,7 @@ class or extends Xt {
|
|
|
6356
6354
|
}
|
|
6357
6355
|
}
|
|
6358
6356
|
}
|
|
6359
|
-
class
|
|
6357
|
+
class sr extends Xt {
|
|
6360
6358
|
controlOptions;
|
|
6361
6359
|
valhallaOptions;
|
|
6362
6360
|
_modalDialog;
|
|
@@ -6561,7 +6559,7 @@ class rr extends Xt {
|
|
|
6561
6559
|
* Create the settings dialog for Valhalla control
|
|
6562
6560
|
*/
|
|
6563
6561
|
createSettingsDialog() {
|
|
6564
|
-
this.settingDialog = new
|
|
6562
|
+
this.settingDialog = new Eo(
|
|
6565
6563
|
`maplibregl-terradraw-${this.cssPrefix}settings-dialog`,
|
|
6566
6564
|
"Settings"
|
|
6567
6565
|
), this.settingDialog.create(
|
|
@@ -6615,7 +6613,7 @@ class rr extends Xt {
|
|
|
6615
6613
|
const r = document.createElement("label");
|
|
6616
6614
|
return r.textContent = "Distance Unit", r.classList.add("setting-label"), o.appendChild(r), o.appendChild(
|
|
6617
6615
|
this.settingDialog.createSegmentButtons(
|
|
6618
|
-
|
|
6616
|
+
Vo,
|
|
6619
6617
|
this.routingDistanceUnit,
|
|
6620
6618
|
(n) => {
|
|
6621
6619
|
this.valhallaOptions.routingOptions || (this.valhallaOptions.routingOptions = {}), this.valhallaOptions.routingOptions.distanceUnit = n, this.dispatchEvent("setting-changed");
|
|
@@ -6632,7 +6630,7 @@ class rr extends Xt {
|
|
|
6632
6630
|
const i = document.createElement("label");
|
|
6633
6631
|
i.textContent = "Contour Type", i.classList.add("setting-label"), t.appendChild(i), t.appendChild(
|
|
6634
6632
|
this.settingDialog.createSegmentButtons(
|
|
6635
|
-
|
|
6633
|
+
Go,
|
|
6636
6634
|
this.controlOptions.valhallaOptions?.isochroneOptions?.contourType || "time",
|
|
6637
6635
|
(d) => {
|
|
6638
6636
|
this.valhallaOptions.isochroneOptions || (this.valhallaOptions.isochroneOptions = {}), this.valhallaOptions.isochroneOptions.contourType = d, this.dispatchEvent("setting-changed");
|
|
@@ -6834,7 +6832,7 @@ class rr extends Xt {
|
|
|
6834
6832
|
if (!this.map || !this.valhallaOptions.url) return;
|
|
6835
6833
|
const t = this.terradraw?.getSnapshotFeature(e);
|
|
6836
6834
|
if (!t || t && t.geometry.type !== "Point") return;
|
|
6837
|
-
const i = t.geometry.coordinates, n = (await new
|
|
6835
|
+
const i = t.geometry.coordinates, n = (await new zo(this.valhallaUrl).calcIsochrone(
|
|
6838
6836
|
i[0],
|
|
6839
6837
|
i[1],
|
|
6840
6838
|
this.isochroneContourType,
|
|
@@ -6868,7 +6866,7 @@ class rr extends Xt {
|
|
|
6868
6866
|
if (!this.map || !this.valhallaOptions.url) return;
|
|
6869
6867
|
const t = this.terradraw?.getSnapshotFeature(e);
|
|
6870
6868
|
if (!t || t && t.geometry.type !== "LineString") return;
|
|
6871
|
-
const i = new
|
|
6869
|
+
const i = new $o(this.valhallaUrl), o = t.geometry.coordinates.map((c) => {
|
|
6872
6870
|
const h = c;
|
|
6873
6871
|
return new qt(h[0], h[1]);
|
|
6874
6872
|
});
|
|
@@ -6943,24 +6941,24 @@ class rr extends Xt {
|
|
|
6943
6941
|
}
|
|
6944
6942
|
}
|
|
6945
6943
|
export {
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6944
|
+
Qo as AvailableModes,
|
|
6945
|
+
er as AvailableValhallaModes,
|
|
6946
|
+
rr as MaplibreMeasureControl,
|
|
6949
6947
|
Xt as MaplibreTerradrawControl,
|
|
6950
|
-
|
|
6948
|
+
sr as MaplibreValhallaControl,
|
|
6951
6949
|
$t as MemoryCache,
|
|
6952
|
-
|
|
6953
|
-
|
|
6950
|
+
Eo as ModalDialog,
|
|
6951
|
+
tr as TERRADRAW_MEASURE_SOURCE_IDS,
|
|
6954
6952
|
re as TERRADRAW_SOURCE_IDS,
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6953
|
+
ir as TERRADRAW_VALHALLA_SOURCE_IDS,
|
|
6954
|
+
zo as ValhallaIsochrone,
|
|
6955
|
+
$o as ValhallaRouting,
|
|
6956
|
+
Po as calcArea,
|
|
6957
|
+
xo as calcDistance,
|
|
6960
6958
|
Pt as capitalize,
|
|
6961
6959
|
Ke as cleanMaplibreStyle,
|
|
6962
|
-
|
|
6963
|
-
|
|
6960
|
+
Go as contourTypeOptions,
|
|
6961
|
+
Co as convertArea,
|
|
6964
6962
|
_e as convertDistance,
|
|
6965
6963
|
ue as convertElevation,
|
|
6966
6964
|
je as costingModelOptions,
|
|
@@ -6969,10 +6967,11 @@ export {
|
|
|
6969
6967
|
Ee as defaultMeasureControlOptions,
|
|
6970
6968
|
q as defaultMeasureUnitSymbols,
|
|
6971
6969
|
z as defaultValhallaControlOptions,
|
|
6972
|
-
|
|
6973
|
-
|
|
6970
|
+
ao as getDefaultModeOptions,
|
|
6971
|
+
no as polygonValidation,
|
|
6972
|
+
Oo as queryElevationByPoint,
|
|
6974
6973
|
It as queryElevationFromRasterDEM,
|
|
6975
|
-
|
|
6976
|
-
|
|
6974
|
+
or as roundFeatureCoordinates,
|
|
6975
|
+
Vo as routingDistanceUnitOptions
|
|
6977
6976
|
};
|
|
6978
6977
|
//# sourceMappingURL=maplibre-gl-terradraw.es.js.map
|