@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.2
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/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-_LBTIfNN.js → p--PSoPbDM.js} +1 -1
- package/dist/bn-template-engine/p-05a82a77.entry.js +1 -0
- package/dist/bn-template-engine/p-0ca8dc17.entry.js +1 -0
- package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
- package/dist/bn-template-engine/p-1d9a3be9.entry.js +1 -0
- package/dist/bn-template-engine/p-35638ad0.entry.js +1 -0
- package/dist/bn-template-engine/p-37881d05.entry.js +1 -0
- package/dist/bn-template-engine/{p-65f8962a.entry.js → p-3b894997.entry.js} +1 -1
- package/dist/bn-template-engine/p-50e49732.entry.js +1 -0
- package/dist/bn-template-engine/p-60a7fc59.entry.js +1 -0
- package/dist/bn-template-engine/{p-ad94cf63.entry.js → p-6c7c0455.entry.js} +1 -1
- package/dist/bn-template-engine/p-6da93eae.entry.js +1 -0
- package/dist/bn-template-engine/p-701e1578.entry.js +1 -0
- package/dist/bn-template-engine/p-BSfqOkN_.js +1 -0
- package/dist/bn-template-engine/{p--TeDldm8.js → p-CRLgp9-v.js} +1 -1
- package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
- package/dist/bn-template-engine/{p-Cp4MVxCu.js → p-CvXqez4D.js} +1 -1
- package/dist/bn-template-engine/p-DG-1MR_T.js +1 -0
- package/dist/bn-template-engine/{p-CnI71OA9.js → p-DRikHQE-.js} +1 -1
- package/dist/bn-template-engine/p-DVMu6dEy.js +1 -0
- package/dist/bn-template-engine/p-DVo6aZUE.js +1 -0
- package/dist/bn-template-engine/p-DdexOqTs.js +1 -0
- package/dist/bn-template-engine/p-DgfL-ffj.js +1 -0
- package/dist/bn-template-engine/p-DyRaC0MB.js +1 -0
- package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
- package/dist/bn-template-engine/p-a95ccc16.entry.js +1 -0
- package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
- package/dist/bn-template-engine/p-bc59ea5c.entry.js +1 -0
- package/dist/bn-template-engine/p-d279b578.entry.js +1 -0
- package/dist/bn-template-engine/p-dd9dd407.entry.js +1 -0
- package/dist/bn-template-engine/p-e102a490.entry.js +1 -0
- package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
- package/dist/bn-template-engine/p-f89e55c6.entry.js +1 -0
- package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-CbIVfGEH.js} +1 -1
- package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CfkXYAMN.js} +4 -5
- package/dist/cjs/{luxon-8hyy5YD7.js → Order-DtpbD8mQ.js} +282 -0
- package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-D-rTWlDo.js} +1 -1
- package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-ByCHdlDO.js} +1 -1
- package/dist/cjs/bn-asset.cjs.entry.js +5 -6
- package/dist/cjs/{bn-body_3.cjs.entry.js → bn-body_4.cjs.entry.js} +360 -27
- package/dist/cjs/bn-card.cjs.entry.js +5 -6
- package/dist/cjs/bn-chart-structure.cjs.entry.js +17 -22
- package/dist/cjs/bn-chart-time.cjs.entry.js +38 -51
- package/dist/cjs/bn-component-style.cjs.entry.js +5 -6
- package/dist/cjs/bn-context_5.cjs.entry.js +36 -40
- package/dist/cjs/bn-dataset.cjs.entry.js +5 -6
- package/dist/cjs/bn-grid.cjs.entry.js +8 -11
- package/dist/cjs/bn-image.cjs.entry.js +8 -11
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -6
- package/dist/cjs/bn-layout-card.cjs.entry.js +3 -3
- package/dist/cjs/bn-layout-page.cjs.entry.js +2 -2
- package/dist/cjs/bn-message.cjs.entry.js +6 -7
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-template.cjs.entry.js +4 -5
- package/dist/cjs/bn-text.cjs.entry.js +12 -16
- package/dist/cjs/bn-tree.cjs.entry.js +8 -11
- package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-CRPmux5D.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +3 -3
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +31 -33
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +42 -44
- package/dist/cjs/{index-CScBFiS1.js → index-Cjw0q6gP.js} +1 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withDataset-ZdN-RRTx.js → scaling-D8sIIKft.js} +68 -3
- package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-C6gLgq_e.js} +2 -2
- package/dist/cjs/{componentRegister-C17UFNPh.js → withComponentStatus-_x4LQZ0N.js} +43 -6
- package/dist/cjs/{withComponentStyle-C6KHnZHt.js → withComponentStyle-DMtic_9Y.js} +3 -3
- package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-B8gHkfV2.js} +1 -1
- package/dist/cjs/{withStyled-Bf-stJTR.js → withStyled-BBtMesx3.js} +14 -63
- package/dist/cjs/{withTranslation-Cz0M5maV.js → withTranslation-CWPAIRjh.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -10
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -3
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +21 -30
- package/dist/collection/components/bn-message/bn-message.js +1 -1
- package/dist/collection/components/bn-page/bn-page.js +1 -1
- package/dist/collection/components/bn-table/bn-table.js +1 -1
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +1 -9
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/utils/DateStringFactory.js +0 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/scaling.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/components/withHasError.js +1 -1
- package/dist/esm/{DataFormatDigits-Dt6gpIiZ.js → DataFormatDigits-DYdbRX-1.js} +1 -1
- package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-DRcbojUT.js} +1 -2
- package/dist/esm/{luxon-DbyXf6dF.js → Order-DdexOqTs.js} +280 -1
- package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-D0Cwprv1.js} +1 -1
- package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-CTL-Dvzp.js} +1 -1
- package/dist/esm/bn-asset.entry.js +5 -6
- package/dist/esm/{bn-body_3.entry.js → bn-body_4.entry.js} +356 -24
- package/dist/esm/bn-card.entry.js +5 -6
- package/dist/esm/bn-chart-structure.entry.js +12 -17
- package/dist/esm/bn-chart-time.entry.js +31 -44
- package/dist/esm/bn-component-style.entry.js +5 -6
- package/dist/esm/bn-context_5.entry.js +15 -19
- package/dist/esm/bn-dataset.entry.js +5 -6
- package/dist/esm/bn-grid.entry.js +8 -11
- package/dist/esm/bn-image.entry.js +8 -11
- package/dist/esm/bn-internationalization.entry.js +5 -6
- package/dist/esm/bn-layout-card.entry.js +3 -3
- package/dist/esm/bn-layout-page.entry.js +2 -2
- package/dist/esm/bn-message.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-template.entry.js +4 -5
- package/dist/esm/bn-text.entry.js +11 -15
- package/dist/esm/bn-tree.entry.js +8 -11
- package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-Bz5klD-F.js} +1 -1
- package/dist/esm/editor-companion.entry.js +3 -3
- package/dist/esm/ibcs-chart-structure.entry.js +5 -7
- package/dist/esm/ibcs-chart-time.entry.js +6 -8
- package/dist/esm/{index-B27Ax6P_.js → index-JNHhIe7t.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withDataset-BT2VQCsG.js → scaling-C6K8FYSF.js} +67 -4
- package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-DczL5ia8.js} +2 -2
- package/dist/esm/{componentRegister-BtVfu16B.js → withComponentStatus-DodoSXe-.js} +36 -1
- package/dist/esm/{withComponentStyle-NaxfakAG.js → withComponentStyle-BerJY64r.js} +3 -3
- package/dist/esm/{withHasError-C48fTE2k.js → withHasError-B3QX2emi.js} +1 -1
- package/dist/esm/{withStyled-CpUTv74m.js → withStyled-DCipbf2O.js} +5 -51
- package/dist/esm/{withTranslation-Do4GhleK.js → withTranslation-mimbJdER.js} +3 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -2
- package/dist/types/components/bn-title/bn-title.d.ts +0 -1
- package/dist/types/components.d.ts +0 -401
- package/package.json +2 -3
- package/readme.md +0 -1
- package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin.png +0 -0
- package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
- package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
- package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
- package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
- package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
- package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
- package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
- package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
- package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
- package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
- package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
- package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
- package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
- package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
- package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
- package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
- package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
- package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
- package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
- package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
- package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
- package/dist/bn-template-engine/p-BQp6ZPYW.js +0 -1
- package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
- package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
- package/dist/bn-template-engine/p-CfWnag33.js +0 -1
- package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
- package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
- package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
- package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
- package/dist/bn-template-engine/p-c9f050bf.entry.js +0 -1
- package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
- package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
- package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
- package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
- package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
- package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
- package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
- package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
- package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
- package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
- package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
- package/dist/cjs/Order-B4NIqQWe.js +0 -129
- package/dist/cjs/bn-map.cjs.entry.js +0 -425
- package/dist/cjs/constants-DHqQXSSd.js +0 -158
- package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
- package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
- package/dist/cjs/scaling-B23eOtsC.js +0 -67
- package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
- package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
- package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
- package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
- package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
- package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
- package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
- package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
- package/dist/collection/components/bn-map/bn-map.css +0 -4
- package/dist/collection/components/bn-map/bn-map.js +0 -725
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
- package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
- package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
- package/dist/collection/test-runner/test-runner-card.js +0 -36
- package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
- package/dist/collection/test-runner/test-runner-chart.js +0 -364
- package/dist/collection/test-runner/test-runner-map.js +0 -1901
- package/dist/collection/test-runner/test-runner-table.js +0 -469
- package/dist/collection/test-runner/test-runner-time.js +0 -399
- package/dist/collection/test-runner/test-runner-title.js +0 -108
- package/dist/components/bn-map.d.ts +0 -11
- package/dist/components/bn-map.js +0 -1
- package/dist/components/componentRegister.js +0 -1
- package/dist/components/ibcs-map.d.ts +0 -11
- package/dist/components/ibcs-map.js +0 -1
- package/dist/components/ibcs-map2.js +0 -1
- package/dist/components/test-runner-card.d.ts +0 -11
- package/dist/components/test-runner-card.js +0 -1
- package/dist/components/test-runner-chart-time.d.ts +0 -11
- package/dist/components/test-runner-chart-time.js +0 -1
- package/dist/components/test-runner-chart.d.ts +0 -11
- package/dist/components/test-runner-chart.js +0 -1
- package/dist/components/test-runner-map.d.ts +0 -11
- package/dist/components/test-runner-map.js +0 -1
- package/dist/components/test-runner-table.d.ts +0 -11
- package/dist/components/test-runner-table.js +0 -1
- package/dist/components/test-runner-time.d.ts +0 -11
- package/dist/components/test-runner-time.js +0 -1
- package/dist/components/test-runner-title.d.ts +0 -11
- package/dist/components/test-runner-title.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/esm/Order-B4fpLe_f.js +0 -125
- package/dist/esm/bn-map.entry.js +0 -423
- package/dist/esm/constants-kMyLevYy.js +0 -158
- package/dist/esm/ibcs-map.entry.js +0 -1073
- package/dist/esm/ibcs-title.entry.js +0 -350
- package/dist/esm/scaling-BBd0ZVLL.js +0 -64
- package/dist/esm/test-runner-card.entry.js +0 -25
- package/dist/esm/test-runner-chart-time.entry.js +0 -228
- package/dist/esm/test-runner-chart.entry.js +0 -324
- package/dist/esm/test-runner-map.entry.js +0 -1860
- package/dist/esm/test-runner-table.entry.js +0 -475
- package/dist/esm/test-runner-time.entry.js +0 -379
- package/dist/esm/test-runner-title.entry.js +0 -113
- package/dist/esm/withComponentStatus-elELReKt.js +0 -37
- package/dist/types/components/bn-map/bn-map.d.ts +0 -122
- package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
- package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
- package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
- package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
- package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
- package/dist/types/test-runner/test-runner-card.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
- package/dist/types/test-runner/test-runner-map.d.ts +0 -3
- package/dist/types/test-runner/test-runner-table.d.ts +0 -3
- package/dist/types/test-runner/test-runner-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-title.d.ts +0 -3
|
@@ -1,725 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { h, Host } from "@stencil/core";
|
|
3
|
-
import { isValidBoolean, isValidNumber, validateGpxType, validateMarkerType, validateGeojsonType, } from "../../utils/validate";
|
|
4
|
-
import { withStyled } from "../../utils/styled/withStyled";
|
|
5
|
-
import withComponentStatus from "../../utils/withComponentStatus";
|
|
6
|
-
import withDataset from "../../utils/withDataset";
|
|
7
|
-
import withHasError from "../../utils/withHasError";
|
|
8
|
-
import { ComponentRegister } from "../../utils/componentRegister";
|
|
9
|
-
import { generateUUID } from "../../utils/utils";
|
|
10
|
-
export class BnMap {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.markerList = [];
|
|
13
|
-
this.gpxList = [];
|
|
14
|
-
this.geojsonList = [];
|
|
15
|
-
// @State() gpxdata: GpxParams[] = [];
|
|
16
|
-
this.gpxData = [];
|
|
17
|
-
this.geojsonData = [];
|
|
18
|
-
this.markerData = [];
|
|
19
|
-
this.data = [];
|
|
20
|
-
this.uuid = generateUUID();
|
|
21
|
-
/**
|
|
22
|
-
* Name of the makers Dataset used in map
|
|
23
|
-
*
|
|
24
|
-
* default: $markers
|
|
25
|
-
*/
|
|
26
|
-
this.markersDatasetName = "$markers";
|
|
27
|
-
/**
|
|
28
|
-
* Name of the gpxs Dataset used in map
|
|
29
|
-
*
|
|
30
|
-
* default: $gpxs
|
|
31
|
-
*/
|
|
32
|
-
this.gpxsDatasetName = "$gpxs";
|
|
33
|
-
/**
|
|
34
|
-
* Latitude of the maps viewport center,
|
|
35
|
-
* the selected value will be ignored if gpx files are
|
|
36
|
-
* selected
|
|
37
|
-
*/
|
|
38
|
-
this.latitude = 50.137634;
|
|
39
|
-
/**
|
|
40
|
-
* Latitude of the maps viewport center,
|
|
41
|
-
* the selected value will be ignored if gpx files are
|
|
42
|
-
* selected
|
|
43
|
-
*/
|
|
44
|
-
this.longitude = 8.679129;
|
|
45
|
-
/**
|
|
46
|
-
* scale / zoom factor of the maps viewport.
|
|
47
|
-
* Decrease the value to zoom out.
|
|
48
|
-
* Increase the value to zoom in.
|
|
49
|
-
* the selected value will be ignored if gpx files are
|
|
50
|
-
* selected
|
|
51
|
-
*/
|
|
52
|
-
this.scale = 11;
|
|
53
|
-
this.manualPosOverride = true;
|
|
54
|
-
/**
|
|
55
|
-
* Activates/ Deactivates Map Scale
|
|
56
|
-
*/
|
|
57
|
-
this.showScale = false;
|
|
58
|
-
/**
|
|
59
|
-
* Set Footer label
|
|
60
|
-
*/
|
|
61
|
-
this.attribution = "";
|
|
62
|
-
/**
|
|
63
|
-
* URL for maplayer provider
|
|
64
|
-
* example provers https://leaflet-extras.github.io/leaflet-providers/preview/
|
|
65
|
-
*/
|
|
66
|
-
this.tileLayer = "https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png";
|
|
67
|
-
/**
|
|
68
|
-
* Marker Parameter
|
|
69
|
-
* example [{"latitude": 50.137634,
|
|
70
|
-
* "longitude": 8.679129,
|
|
71
|
-
* "iconUrl": "http://localhost:3333/build/assets/icons/marker-example.png",
|
|
72
|
-
* "iconWidth": 64,
|
|
73
|
-
* "iconHeight":64}]
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
this.markers = null;
|
|
77
|
-
/**
|
|
78
|
-
* GPX Parameter
|
|
79
|
-
* example ["file": "http://URL_TO_GPX.gpx",
|
|
80
|
-
* "color": "#FC5200",
|
|
81
|
-
* "opacity": 0.75,
|
|
82
|
-
* "weight": 3,
|
|
83
|
-
* "lineCap": "round"}]
|
|
84
|
-
* */
|
|
85
|
-
this.gpxs = null;
|
|
86
|
-
this.geojsons = null;
|
|
87
|
-
withStyled(this);
|
|
88
|
-
withComponentStatus(this);
|
|
89
|
-
this.errors = withHasError(this);
|
|
90
|
-
withDataset(this, (name, data) => {
|
|
91
|
-
if (name === this.markersDatasetName) {
|
|
92
|
-
this.markerData = data;
|
|
93
|
-
}
|
|
94
|
-
else if (name === this.gpxsDatasetName) {
|
|
95
|
-
this.gpxData = data;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
validateMarkerDatasetName(newValue) {
|
|
100
|
-
const errId = "ERR_markersDatasetName";
|
|
101
|
-
if (typeof newValue !== "string") {
|
|
102
|
-
this.errors.addOrReplace({
|
|
103
|
-
id: errId,
|
|
104
|
-
type: "warning",
|
|
105
|
-
message: "markerDatasetName: invalid value(s) '" + newValue + "' are not supported.",
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
this.errors.remove(errId);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
validateGpxsDatasetName(newValue) {
|
|
113
|
-
const errId = "ERR_gpxsDatasetName";
|
|
114
|
-
if (typeof newValue !== "string") {
|
|
115
|
-
this.errors.addOrReplace({
|
|
116
|
-
id: errId,
|
|
117
|
-
type: "warning",
|
|
118
|
-
message: "gpxsDatasetName: invalid value(s) '" + newValue + "' are not supported.",
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this.errors.remove(errId);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
validateLatitude(newValue) {
|
|
126
|
-
const errId = "ERR_latitude";
|
|
127
|
-
if (!isValidNumber(newValue)) {
|
|
128
|
-
this.errors.addOrReplace({
|
|
129
|
-
id: errId,
|
|
130
|
-
type: "warning",
|
|
131
|
-
message: "latitude: invalid value(s) '" + newValue + "' are not supported.",
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
this.errors.remove(errId);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
validateLongitude(newValue) {
|
|
139
|
-
const errId = "ERR_longitude";
|
|
140
|
-
if (!isValidNumber(newValue)) {
|
|
141
|
-
this.errors.addOrReplace({
|
|
142
|
-
id: errId,
|
|
143
|
-
type: "warning",
|
|
144
|
-
message: "longitude: invalid value(s) '" + newValue + "' are not supported.",
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
this.errors.remove(errId);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
validateScale(newValue) {
|
|
152
|
-
const errId = "ERR_scale";
|
|
153
|
-
if (!isValidNumber(newValue)) {
|
|
154
|
-
this.errors.addOrReplace({
|
|
155
|
-
id: errId,
|
|
156
|
-
type: "warning",
|
|
157
|
-
message: "scale: invalid value(s) '" + newValue + "' are not supported.",
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
this.errors.remove(errId);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
validateManualPosOverride(newValue) {
|
|
165
|
-
const errId = "ERR_scale";
|
|
166
|
-
if (!isValidBoolean(newValue)) {
|
|
167
|
-
this.errors.addOrReplace({
|
|
168
|
-
id: errId,
|
|
169
|
-
type: "warning",
|
|
170
|
-
message: "manualPosOverride: invalid value(s) '" + newValue + "' are not supported.",
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
this.errors.remove(errId);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
validateShowScale(newValue) {
|
|
178
|
-
const errId = "ERR_showScale";
|
|
179
|
-
if (!isValidBoolean(newValue)) {
|
|
180
|
-
this.errors.addOrReplace({
|
|
181
|
-
id: errId,
|
|
182
|
-
type: "warning",
|
|
183
|
-
message: "showScale: invalid value(s) '" + newValue + "' are not supported.",
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
this.errors.remove(errId);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
validateAttribution(newValue) {
|
|
191
|
-
const errId = "ERR_attribution";
|
|
192
|
-
if (typeof newValue !== "string") {
|
|
193
|
-
this.errors.addOrReplace({
|
|
194
|
-
id: errId,
|
|
195
|
-
type: "warning",
|
|
196
|
-
message: "attribution: invalid value(s) '" + newValue + "' are not supported.",
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
this.errors.remove(errId);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
validateTileLayer(newValue) {
|
|
204
|
-
const errId = "ERR_tileLayer";
|
|
205
|
-
if (typeof newValue !== "string") {
|
|
206
|
-
this.errors.addOrReplace({
|
|
207
|
-
id: errId,
|
|
208
|
-
type: "warning",
|
|
209
|
-
message: "tileLayer: invalid value(s) '" + newValue + "' are not supported.",
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
this.errors.remove(errId);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
validateMarkers(newValue) {
|
|
217
|
-
if (!newValue) {
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
const errId = "ERR_markers";
|
|
221
|
-
const errIdJson = "ERR_markersJSON";
|
|
222
|
-
try {
|
|
223
|
-
const invalidScenarios = validateMarkerType(newValue);
|
|
224
|
-
if (invalidScenarios.length > 0) {
|
|
225
|
-
this.errors.addOrReplace({
|
|
226
|
-
id: errId,
|
|
227
|
-
type: "warning",
|
|
228
|
-
message: "Markers: invalid value(s) '" + invalidScenarios + "' are not supported.",
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
this.errors.remove(errId);
|
|
233
|
-
}
|
|
234
|
-
this.markerList = JSON.parse(newValue);
|
|
235
|
-
this.errors.remove(errIdJson);
|
|
236
|
-
}
|
|
237
|
-
catch (e) {
|
|
238
|
-
this.errors.addOrReplace({
|
|
239
|
-
id: errIdJson,
|
|
240
|
-
type: "warning",
|
|
241
|
-
message: "Markers: invalid value(s) '" + newValue + "' are not supported.:" + e.message,
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
validateGpx(newValue) {
|
|
246
|
-
if (!newValue) {
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
const errId = "ERR_gpxs";
|
|
250
|
-
const errIdJson = "ERR_gpxsJSON";
|
|
251
|
-
try {
|
|
252
|
-
const invalidScenarios = validateGpxType(newValue);
|
|
253
|
-
if (invalidScenarios.length > 0) {
|
|
254
|
-
this.errors.addOrReplace({
|
|
255
|
-
id: errId,
|
|
256
|
-
type: "warning",
|
|
257
|
-
message: "gpxs: invalid value(s) '" + invalidScenarios + "' are not supported.",
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
this.errors.remove(errId);
|
|
262
|
-
}
|
|
263
|
-
this.gpxList = JSON.parse(newValue);
|
|
264
|
-
this.errors.remove(errIdJson);
|
|
265
|
-
}
|
|
266
|
-
catch (e) {
|
|
267
|
-
this.errors.addOrReplace({
|
|
268
|
-
id: errIdJson,
|
|
269
|
-
type: "warning",
|
|
270
|
-
message: "gpxs: invalid '" + newValue + "' is not supported.:" + e.message,
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
validateGeojson(newValue) {
|
|
275
|
-
if (!newValue) {
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
const errId = "ERR_geojsons";
|
|
279
|
-
const errIdJson = "ERR_geojsons";
|
|
280
|
-
try {
|
|
281
|
-
const invalidScenarios = validateGeojsonType(newValue);
|
|
282
|
-
if (invalidScenarios.length > 0) {
|
|
283
|
-
this.errors.addOrReplace({
|
|
284
|
-
id: errId,
|
|
285
|
-
type: "warning",
|
|
286
|
-
message: "geojsons: invalid value(s) '" + invalidScenarios + "' are not supported.",
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
this.errors.remove(errId);
|
|
291
|
-
}
|
|
292
|
-
this.geojsonList = JSON.parse(newValue);
|
|
293
|
-
this.errors.remove(errIdJson);
|
|
294
|
-
}
|
|
295
|
-
catch (e) {
|
|
296
|
-
this.errors.addOrReplace({
|
|
297
|
-
id: errIdJson,
|
|
298
|
-
type: "warning",
|
|
299
|
-
message: "geojsons: invalid '" + newValue + "' is not supported.:" + e.message,
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
stateUpdated(status) {
|
|
304
|
-
ComponentRegister.updateStatus(this.uuid, status.detail);
|
|
305
|
-
}
|
|
306
|
-
dragZoomEnded(props) {
|
|
307
|
-
this.bnDragZoomEnded.emit(props.detail);
|
|
308
|
-
}
|
|
309
|
-
componentWillLoad() {
|
|
310
|
-
this.validateLatitude(this.latitude);
|
|
311
|
-
this.validateLongitude(this.longitude);
|
|
312
|
-
this.validateScale(this.scale);
|
|
313
|
-
this.validateShowScale(this.showScale);
|
|
314
|
-
this.validateAttribution(this.attribution);
|
|
315
|
-
this.validateTileLayer(this.tileLayer);
|
|
316
|
-
this.validateMarkers(this.markers);
|
|
317
|
-
this.validateGpx(this.gpxs);
|
|
318
|
-
this.validateGeojson(this.geojsons);
|
|
319
|
-
this.validateManualPosOverride(this.manualPosOverride);
|
|
320
|
-
}
|
|
321
|
-
render() {
|
|
322
|
-
return (h(Host, { key: 'fa9bf3fb7fcf0c10b91967c6e3a67db914af1bf9' }, h("ibcs-map", { key: '2b692fe311b00b65d0001ae64f5b17f7b99d111d', tileLayer: this.tileLayer, latitude: this.latitude, longitude: this.longitude, scale: this.scale, showScale: this.showScale, showZoom: false, attribution: this.attribution, gpxs: this.prepareGpxData(), markers: this.prepareMarkerData(), geojsons: this.prepareGeojsonData(), manualPosOverride: this.manualPosOverride })));
|
|
323
|
-
}
|
|
324
|
-
prepareMarkerData() {
|
|
325
|
-
return [...this.markerData, ...this.markerList];
|
|
326
|
-
}
|
|
327
|
-
prepareGpxData() {
|
|
328
|
-
return [...this.gpxData, ...this.gpxList];
|
|
329
|
-
}
|
|
330
|
-
prepareGeojsonData() {
|
|
331
|
-
return [...this.geojsonData, ...this.geojsonList];
|
|
332
|
-
}
|
|
333
|
-
getDataStructureGpxParams() {
|
|
334
|
-
const dataSetStructure = {
|
|
335
|
-
GpxParams: {
|
|
336
|
-
file: { type: "string", isOptional: false, description: "" },
|
|
337
|
-
color: { type: "string", isOptional: false, description: "" },
|
|
338
|
-
opacity: { type: "number", isOptional: false, description: "" },
|
|
339
|
-
weight: { type: "number", isOptional: false, description: "" },
|
|
340
|
-
lineCap: { type: "string", isOptional: false, description: "" },
|
|
341
|
-
startIconUrl: { type: "string", isOptional: false, description: "" },
|
|
342
|
-
endIconUrl: { type: "string", isOptional: false, description: "" },
|
|
343
|
-
shadowUrl: { type: "string", isOptional: false, description: "" },
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
return dataSetStructure;
|
|
347
|
-
}
|
|
348
|
-
getDataStructureGeojsonParams() {
|
|
349
|
-
const dataSetStructure = {
|
|
350
|
-
GeojsonParams: {
|
|
351
|
-
file: { type: "string", isOptional: false, description: "" },
|
|
352
|
-
color: { type: "string", isOptional: false, description: "" },
|
|
353
|
-
opacity: { type: "number", isOptional: false, description: "" },
|
|
354
|
-
weight: { type: "number", isOptional: false, description: "" },
|
|
355
|
-
lineCap: { type: "string", isOptional: false, description: "" },
|
|
356
|
-
},
|
|
357
|
-
};
|
|
358
|
-
return dataSetStructure;
|
|
359
|
-
}
|
|
360
|
-
getDataStructureMarkerParams() {
|
|
361
|
-
const dataSetStructure = {
|
|
362
|
-
MarkerParams: {
|
|
363
|
-
latitude: { type: "number", isOptional: false, description: "" },
|
|
364
|
-
longitude: { type: "string", isOptional: false, description: "" },
|
|
365
|
-
iconUrl: { type: "number", isOptional: false, description: "" },
|
|
366
|
-
iconWidth: { type: "number", isOptional: false, description: "" },
|
|
367
|
-
iconHeight: { type: "number", isOptional: false, description: "" },
|
|
368
|
-
tile: { type: "string", isOptional: false, description: "" },
|
|
369
|
-
},
|
|
370
|
-
};
|
|
371
|
-
return dataSetStructure;
|
|
372
|
-
}
|
|
373
|
-
static get is() { return "bn-map"; }
|
|
374
|
-
static get encapsulation() { return "shadow"; }
|
|
375
|
-
static get originalStyleUrls() {
|
|
376
|
-
return {
|
|
377
|
-
"$": ["bn-map.css"]
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
static get styleUrls() {
|
|
381
|
-
return {
|
|
382
|
-
"$": ["bn-map.css"]
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
static get properties() {
|
|
386
|
-
return {
|
|
387
|
-
"markersDatasetName": {
|
|
388
|
-
"type": "string",
|
|
389
|
-
"mutable": false,
|
|
390
|
-
"complexType": {
|
|
391
|
-
"original": "string",
|
|
392
|
-
"resolved": "string",
|
|
393
|
-
"references": {}
|
|
394
|
-
},
|
|
395
|
-
"required": false,
|
|
396
|
-
"optional": false,
|
|
397
|
-
"docs": {
|
|
398
|
-
"tags": [],
|
|
399
|
-
"text": "Name of the makers Dataset used in map\n\ndefault: $markers"
|
|
400
|
-
},
|
|
401
|
-
"getter": false,
|
|
402
|
-
"setter": false,
|
|
403
|
-
"reflect": false,
|
|
404
|
-
"attribute": "markers-dataset-name",
|
|
405
|
-
"defaultValue": "\"$markers\""
|
|
406
|
-
},
|
|
407
|
-
"gpxsDatasetName": {
|
|
408
|
-
"type": "string",
|
|
409
|
-
"mutable": false,
|
|
410
|
-
"complexType": {
|
|
411
|
-
"original": "string",
|
|
412
|
-
"resolved": "string",
|
|
413
|
-
"references": {}
|
|
414
|
-
},
|
|
415
|
-
"required": false,
|
|
416
|
-
"optional": false,
|
|
417
|
-
"docs": {
|
|
418
|
-
"tags": [],
|
|
419
|
-
"text": "Name of the gpxs Dataset used in map\n\ndefault: $gpxs"
|
|
420
|
-
},
|
|
421
|
-
"getter": false,
|
|
422
|
-
"setter": false,
|
|
423
|
-
"reflect": false,
|
|
424
|
-
"attribute": "gpxs-dataset-name",
|
|
425
|
-
"defaultValue": "\"$gpxs\""
|
|
426
|
-
},
|
|
427
|
-
"latitude": {
|
|
428
|
-
"type": "number",
|
|
429
|
-
"mutable": true,
|
|
430
|
-
"complexType": {
|
|
431
|
-
"original": "number",
|
|
432
|
-
"resolved": "number",
|
|
433
|
-
"references": {}
|
|
434
|
-
},
|
|
435
|
-
"required": false,
|
|
436
|
-
"optional": false,
|
|
437
|
-
"docs": {
|
|
438
|
-
"tags": [],
|
|
439
|
-
"text": "Latitude of the maps viewport center,\nthe selected value will be ignored if gpx files are\nselected"
|
|
440
|
-
},
|
|
441
|
-
"getter": false,
|
|
442
|
-
"setter": false,
|
|
443
|
-
"reflect": false,
|
|
444
|
-
"attribute": "latitude",
|
|
445
|
-
"defaultValue": "50.137634"
|
|
446
|
-
},
|
|
447
|
-
"longitude": {
|
|
448
|
-
"type": "number",
|
|
449
|
-
"mutable": true,
|
|
450
|
-
"complexType": {
|
|
451
|
-
"original": "number",
|
|
452
|
-
"resolved": "number",
|
|
453
|
-
"references": {}
|
|
454
|
-
},
|
|
455
|
-
"required": false,
|
|
456
|
-
"optional": false,
|
|
457
|
-
"docs": {
|
|
458
|
-
"tags": [],
|
|
459
|
-
"text": "Latitude of the maps viewport center,\nthe selected value will be ignored if gpx files are\nselected"
|
|
460
|
-
},
|
|
461
|
-
"getter": false,
|
|
462
|
-
"setter": false,
|
|
463
|
-
"reflect": false,
|
|
464
|
-
"attribute": "longitude",
|
|
465
|
-
"defaultValue": "8.679129"
|
|
466
|
-
},
|
|
467
|
-
"scale": {
|
|
468
|
-
"type": "number",
|
|
469
|
-
"mutable": true,
|
|
470
|
-
"complexType": {
|
|
471
|
-
"original": "number",
|
|
472
|
-
"resolved": "number",
|
|
473
|
-
"references": {}
|
|
474
|
-
},
|
|
475
|
-
"required": false,
|
|
476
|
-
"optional": false,
|
|
477
|
-
"docs": {
|
|
478
|
-
"tags": [],
|
|
479
|
-
"text": "scale / zoom factor of the maps viewport.\nDecrease the value to zoom out.\nIncrease the value to zoom in.\nthe selected value will be ignored if gpx files are\nselected"
|
|
480
|
-
},
|
|
481
|
-
"getter": false,
|
|
482
|
-
"setter": false,
|
|
483
|
-
"reflect": false,
|
|
484
|
-
"attribute": "scale",
|
|
485
|
-
"defaultValue": "11"
|
|
486
|
-
},
|
|
487
|
-
"manualPosOverride": {
|
|
488
|
-
"type": "boolean",
|
|
489
|
-
"mutable": true,
|
|
490
|
-
"complexType": {
|
|
491
|
-
"original": "boolean",
|
|
492
|
-
"resolved": "boolean",
|
|
493
|
-
"references": {}
|
|
494
|
-
},
|
|
495
|
-
"required": false,
|
|
496
|
-
"optional": false,
|
|
497
|
-
"docs": {
|
|
498
|
-
"tags": [],
|
|
499
|
-
"text": ""
|
|
500
|
-
},
|
|
501
|
-
"getter": false,
|
|
502
|
-
"setter": false,
|
|
503
|
-
"reflect": false,
|
|
504
|
-
"attribute": "manual-pos-override",
|
|
505
|
-
"defaultValue": "true"
|
|
506
|
-
},
|
|
507
|
-
"showScale": {
|
|
508
|
-
"type": "boolean",
|
|
509
|
-
"mutable": false,
|
|
510
|
-
"complexType": {
|
|
511
|
-
"original": "boolean",
|
|
512
|
-
"resolved": "boolean",
|
|
513
|
-
"references": {}
|
|
514
|
-
},
|
|
515
|
-
"required": false,
|
|
516
|
-
"optional": false,
|
|
517
|
-
"docs": {
|
|
518
|
-
"tags": [],
|
|
519
|
-
"text": "Activates/ Deactivates Map Scale"
|
|
520
|
-
},
|
|
521
|
-
"getter": false,
|
|
522
|
-
"setter": false,
|
|
523
|
-
"reflect": false,
|
|
524
|
-
"attribute": "show-scale",
|
|
525
|
-
"defaultValue": "false"
|
|
526
|
-
},
|
|
527
|
-
"attribution": {
|
|
528
|
-
"type": "string",
|
|
529
|
-
"mutable": false,
|
|
530
|
-
"complexType": {
|
|
531
|
-
"original": "string",
|
|
532
|
-
"resolved": "string",
|
|
533
|
-
"references": {}
|
|
534
|
-
},
|
|
535
|
-
"required": false,
|
|
536
|
-
"optional": false,
|
|
537
|
-
"docs": {
|
|
538
|
-
"tags": [],
|
|
539
|
-
"text": "Set Footer label"
|
|
540
|
-
},
|
|
541
|
-
"getter": false,
|
|
542
|
-
"setter": false,
|
|
543
|
-
"reflect": false,
|
|
544
|
-
"attribute": "attribution",
|
|
545
|
-
"defaultValue": "\"\""
|
|
546
|
-
},
|
|
547
|
-
"tileLayer": {
|
|
548
|
-
"type": "string",
|
|
549
|
-
"mutable": false,
|
|
550
|
-
"complexType": {
|
|
551
|
-
"original": "string",
|
|
552
|
-
"resolved": "string",
|
|
553
|
-
"references": {}
|
|
554
|
-
},
|
|
555
|
-
"required": false,
|
|
556
|
-
"optional": false,
|
|
557
|
-
"docs": {
|
|
558
|
-
"tags": [],
|
|
559
|
-
"text": "URL for maplayer provider\nexample provers https://leaflet-extras.github.io/leaflet-providers/preview/"
|
|
560
|
-
},
|
|
561
|
-
"getter": false,
|
|
562
|
-
"setter": false,
|
|
563
|
-
"reflect": false,
|
|
564
|
-
"attribute": "tile-layer",
|
|
565
|
-
"defaultValue": "\"https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png\""
|
|
566
|
-
},
|
|
567
|
-
"markers": {
|
|
568
|
-
"type": "string",
|
|
569
|
-
"mutable": false,
|
|
570
|
-
"complexType": {
|
|
571
|
-
"original": "string | null",
|
|
572
|
-
"resolved": "string",
|
|
573
|
-
"references": {}
|
|
574
|
-
},
|
|
575
|
-
"required": false,
|
|
576
|
-
"optional": false,
|
|
577
|
-
"docs": {
|
|
578
|
-
"tags": [],
|
|
579
|
-
"text": "Marker Parameter\nexample [{\"latitude\": 50.137634,\n \"longitude\": 8.679129,\n \"iconUrl\": \"http://localhost:3333/build/assets/icons/marker-example.png\",\n \"iconWidth\": 64,\n \"iconHeight\":64}]"
|
|
580
|
-
},
|
|
581
|
-
"getter": false,
|
|
582
|
-
"setter": false,
|
|
583
|
-
"reflect": false,
|
|
584
|
-
"attribute": "markers",
|
|
585
|
-
"defaultValue": "null"
|
|
586
|
-
},
|
|
587
|
-
"gpxs": {
|
|
588
|
-
"type": "string",
|
|
589
|
-
"mutable": false,
|
|
590
|
-
"complexType": {
|
|
591
|
-
"original": "string | null",
|
|
592
|
-
"resolved": "string",
|
|
593
|
-
"references": {}
|
|
594
|
-
},
|
|
595
|
-
"required": false,
|
|
596
|
-
"optional": false,
|
|
597
|
-
"docs": {
|
|
598
|
-
"tags": [],
|
|
599
|
-
"text": "GPX Parameter\nexample [\"file\": \"http://URL_TO_GPX.gpx\",\n \"color\": \"#FC5200\",\n \"opacity\": 0.75,\n \"weight\": 3,\n \"lineCap\": \"round\"}]"
|
|
600
|
-
},
|
|
601
|
-
"getter": false,
|
|
602
|
-
"setter": false,
|
|
603
|
-
"reflect": false,
|
|
604
|
-
"attribute": "gpxs",
|
|
605
|
-
"defaultValue": "null"
|
|
606
|
-
},
|
|
607
|
-
"geojsons": {
|
|
608
|
-
"type": "string",
|
|
609
|
-
"mutable": false,
|
|
610
|
-
"complexType": {
|
|
611
|
-
"original": "string | null",
|
|
612
|
-
"resolved": "string",
|
|
613
|
-
"references": {}
|
|
614
|
-
},
|
|
615
|
-
"required": false,
|
|
616
|
-
"optional": false,
|
|
617
|
-
"docs": {
|
|
618
|
-
"tags": [],
|
|
619
|
-
"text": ""
|
|
620
|
-
},
|
|
621
|
-
"getter": false,
|
|
622
|
-
"setter": false,
|
|
623
|
-
"reflect": false,
|
|
624
|
-
"attribute": "geojsons",
|
|
625
|
-
"defaultValue": "null"
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
static get states() {
|
|
630
|
-
return {
|
|
631
|
-
"gpxData": {},
|
|
632
|
-
"geojsonData": {},
|
|
633
|
-
"markerData": {},
|
|
634
|
-
"data": {}
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
static get events() {
|
|
638
|
-
return [{
|
|
639
|
-
"method": "bnStateUpdated",
|
|
640
|
-
"name": "bnStateUpdated",
|
|
641
|
-
"bubbles": true,
|
|
642
|
-
"cancelable": true,
|
|
643
|
-
"composed": true,
|
|
644
|
-
"docs": {
|
|
645
|
-
"tags": [],
|
|
646
|
-
"text": ""
|
|
647
|
-
},
|
|
648
|
-
"complexType": {
|
|
649
|
-
"original": "any",
|
|
650
|
-
"resolved": "any",
|
|
651
|
-
"references": {}
|
|
652
|
-
}
|
|
653
|
-
}, {
|
|
654
|
-
"method": "bnDragZoomEnded",
|
|
655
|
-
"name": "bnDragZoomEnded",
|
|
656
|
-
"bubbles": true,
|
|
657
|
-
"cancelable": true,
|
|
658
|
-
"composed": true,
|
|
659
|
-
"docs": {
|
|
660
|
-
"tags": [],
|
|
661
|
-
"text": ""
|
|
662
|
-
},
|
|
663
|
-
"complexType": {
|
|
664
|
-
"original": "any",
|
|
665
|
-
"resolved": "any",
|
|
666
|
-
"references": {}
|
|
667
|
-
}
|
|
668
|
-
}];
|
|
669
|
-
}
|
|
670
|
-
static get elementRef() { return "element"; }
|
|
671
|
-
static get watchers() {
|
|
672
|
-
return [{
|
|
673
|
-
"propName": "markersDatasetName",
|
|
674
|
-
"methodName": "validateMarkerDatasetName"
|
|
675
|
-
}, {
|
|
676
|
-
"propName": "gpxsDatasetName",
|
|
677
|
-
"methodName": "validateGpxsDatasetName"
|
|
678
|
-
}, {
|
|
679
|
-
"propName": "latitude",
|
|
680
|
-
"methodName": "validateLatitude"
|
|
681
|
-
}, {
|
|
682
|
-
"propName": "longitude",
|
|
683
|
-
"methodName": "validateLongitude"
|
|
684
|
-
}, {
|
|
685
|
-
"propName": "scale",
|
|
686
|
-
"methodName": "validateScale"
|
|
687
|
-
}, {
|
|
688
|
-
"propName": "manualPosOverride",
|
|
689
|
-
"methodName": "validateManualPosOverride"
|
|
690
|
-
}, {
|
|
691
|
-
"propName": "showScale",
|
|
692
|
-
"methodName": "validateShowScale"
|
|
693
|
-
}, {
|
|
694
|
-
"propName": "attribution",
|
|
695
|
-
"methodName": "validateAttribution"
|
|
696
|
-
}, {
|
|
697
|
-
"propName": "tileLayer",
|
|
698
|
-
"methodName": "validateTileLayer"
|
|
699
|
-
}, {
|
|
700
|
-
"propName": "markers",
|
|
701
|
-
"methodName": "validateMarkers"
|
|
702
|
-
}, {
|
|
703
|
-
"propName": "gpxs",
|
|
704
|
-
"methodName": "validateGpx"
|
|
705
|
-
}, {
|
|
706
|
-
"propName": "geojsons",
|
|
707
|
-
"methodName": "validateGeojson"
|
|
708
|
-
}];
|
|
709
|
-
}
|
|
710
|
-
static get listeners() {
|
|
711
|
-
return [{
|
|
712
|
-
"name": "stateUpdated",
|
|
713
|
-
"method": "stateUpdated",
|
|
714
|
-
"target": undefined,
|
|
715
|
-
"capture": false,
|
|
716
|
-
"passive": false
|
|
717
|
-
}, {
|
|
718
|
-
"name": "dragZoomEnded",
|
|
719
|
-
"method": "dragZoomEnded",
|
|
720
|
-
"target": undefined,
|
|
721
|
-
"capture": false,
|
|
722
|
-
"passive": false
|
|
723
|
-
}];
|
|
724
|
-
}
|
|
725
|
-
}
|