@geotrekce/geotrek-rando-widget 0.2.16 → 0.3.1
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/cjs/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +13 -14
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-filter_8.cjs.entry.js → grw-filter_7.cjs.entry.js} +228 -44
- package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js +28 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js +14 -4
- package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-210f453b.js → i18n-dbc032dc.js} +9 -3
- package/dist/cjs/i18n-dbc032dc.js.br +0 -0
- package/dist/cjs/i18n-dbc032dc.js.gz +0 -0
- package/dist/cjs/i18n-dbc032dc.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{store-7461838a.js → store-a37c979e.js} +3 -2
- package/dist/cjs/store-a37c979e.js.br +0 -0
- package/dist/cjs/store-a37c979e.js.gz +0 -0
- package/dist/cjs/store-a37c979e.js.map +1 -0
- package/dist/cjs/{utils-7e65b55d.js → utils-fb618f73.js} +10 -10
- package/dist/cjs/utils-fb618f73.js.br +0 -0
- package/dist/cjs/utils-fb618f73.js.gz +0 -0
- package/dist/cjs/utils-fb618f73.js.map +1 -0
- package/dist/collection/assets/contract.svg +1 -0
- package/dist/collection/assets/contract.svg.br +2 -0
- package/dist/collection/assets/contract.svg.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.css +22 -42
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +18 -38
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +79 -10
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +247 -22
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +4 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +54 -1
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/i18n/i18n.js +8 -2
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/services/treks.service.js +6 -0
- package/dist/collection/services/treks.service.js.br +0 -0
- package/dist/collection/services/treks.service.js.gz +0 -0
- package/dist/collection/services/treks.service.js.map +1 -0
- package/dist/collection/store/store.js +2 -1
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/collection/stories/App.js +4 -6
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +6 -5
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/collection/stories/TrekMap.js +6 -3
- package/dist/collection/stories/TrekMap.js.br +0 -0
- package/dist/collection/stories/TrekMap.js.gz +0 -0
- package/dist/collection/stories/TrekMap.stories.js +6 -3
- package/dist/collection/stories/TrekMap.stories.js.br +0 -0
- package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
- package/dist/collection/stories/TreksMap.js +16 -3
- package/dist/collection/stories/TreksMap.js.br +0 -0
- package/dist/collection/stories/TreksMap.js.gz +0 -0
- package/dist/collection/stories/TreksMap.stories.js +6 -3
- package/dist/collection/stories/TreksMap.stories.js.br +0 -0
- package/dist/collection/stories/TreksMap.stories.js.gz +0 -0
- package/dist/collection/utils/utils.js +8 -8
- package/dist/collection/utils/utils.js.br +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +13 -14
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/{grw-filter_8.entry.js → grw-filter_7.entry.js} +229 -44
- package/dist/esm/grw-filter_7.entry.js.br +0 -0
- package/dist/esm/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm/grw-filter_7.entry.js.map +1 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm/grw-select-language.entry.js +24 -0
- package/dist/esm/grw-select-language.entry.js.br +0 -0
- package/dist/esm/grw-select-language.entry.js.gz +0 -0
- package/dist/esm/grw-select-language.entry.js.map +1 -0
- package/dist/esm/grw-trek-card.entry.js +14 -4
- package/dist/esm/grw-trek-card.entry.js.br +0 -0
- package/dist/esm/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm/grw-trek-card.entry.js.map +1 -1
- package/dist/esm/{i18n-301409fd.js → i18n-edd08a35.js} +9 -3
- package/dist/esm/i18n-edd08a35.js.br +0 -0
- package/dist/esm/i18n-edd08a35.js.gz +0 -0
- package/dist/esm/i18n-edd08a35.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{store-23a2ba46.js → store-d82e965e.js} +3 -2
- package/dist/esm/store-d82e965e.js.br +0 -0
- package/dist/esm/store-d82e965e.js.gz +0 -0
- package/dist/esm/store-d82e965e.js.map +1 -0
- package/dist/esm/{utils-39d36282.js → utils-f5faa5c9.js} +10 -10
- package/dist/esm/utils-f5faa5c9.js.br +0 -0
- package/dist/esm/utils-f5faa5c9.js.gz +0 -0
- package/dist/esm/utils-f5faa5c9.js.map +1 -0
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/{grw-filter_8.entry.js → grw-filter_7.entry.js} +4 -4
- package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-select-language.entry.js +2 -0
- package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.map +1 -0
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.map +1 -1
- package/dist/esm-es5/i18n-edd08a35.js +2 -0
- package/dist/esm-es5/i18n-edd08a35.js.br +0 -0
- package/dist/esm-es5/i18n-edd08a35.js.gz +0 -0
- package/dist/esm-es5/i18n-edd08a35.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{store-23a2ba46.js → store-d82e965e.js} +2 -2
- package/dist/esm-es5/store-d82e965e.js.br +0 -0
- package/dist/esm-es5/store-d82e965e.js.gz +0 -0
- package/dist/esm-es5/store-d82e965e.js.map +1 -0
- package/dist/esm-es5/utils-f5faa5c9.js +2 -0
- package/dist/esm-es5/utils-f5faa5c9.js.br +0 -0
- package/dist/esm-es5/utils-f5faa5c9.js.gz +0 -0
- package/dist/esm-es5/utils-f5faa5c9.js.map +1 -0
- package/dist/geotrek-rando-widget/assets/contract.svg +1 -0
- package/dist/geotrek-rando-widget/assets/contract.svg.br +2 -0
- package/dist/geotrek-rando-widget/assets/contract.svg.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js +1 -1
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-574221ae.entry.js → p-39bfe711.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-39bfe711.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-39bfe711.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4d2165f1.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-4d2165f1.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4d2165f1.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4d2165f1.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-501ad139.system.js +2 -0
- package/dist/geotrek-rando-widget/p-501ad139.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-501ad139.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-501ad139.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-61ec76a2.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-79b7f905.system.js +2 -0
- package/dist/geotrek-rando-widget/p-79b7f905.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-79b7f905.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-79b7f905.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-81aa2a54.js +2 -0
- package/dist/geotrek-rando-widget/p-81aa2a54.js.br +0 -0
- package/dist/geotrek-rando-widget/p-81aa2a54.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-81aa2a54.js.map +1 -0
- package/dist/geotrek-rando-widget/p-90bdf63f.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-98765517.js +2 -0
- package/dist/geotrek-rando-widget/p-98765517.js.br +0 -0
- package/dist/geotrek-rando-widget/p-98765517.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-98765517.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bae950b8.system.entry.js → p-ba443d6f.system.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-ba443d6f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ba443d6f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ba443d6f.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-21c8e513.system.entry.js → p-bbe147a7.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-bbe147a7.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bbe147a7.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-ad723f74.js → p-beebe2d4.js} +2 -2
- package/dist/geotrek-rando-widget/p-beebe2d4.js.br +0 -0
- package/dist/geotrek-rando-widget/p-beebe2d4.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-beebe2d4.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-df9a7637.entry.js → p-cce43b19.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-cce43b19.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cce43b19.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-df9a7637.entry.js.map → p-cce43b19.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-d5eab080.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-d5eab080.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d5eab080.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d5eab080.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-f92813f3.system.js +2 -0
- package/dist/geotrek-rando-widget/p-f92813f3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f92813f3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f92813f3.system.js.map +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +3 -4
- package/dist/types/components/grw-map/grw-map.d.ts +18 -2
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +4 -0
- package/dist/types/components.d.ts +10 -8
- package/dist/types/i18n/i18n.d.ts +4 -1
- package/dist/types/services/treks.service.d.ts +1 -0
- package/dist/types/store/store.d.ts +4 -2
- package/package.json +3 -1
- package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-210f453b.js.br +0 -0
- package/dist/cjs/i18n-210f453b.js.gz +0 -0
- package/dist/cjs/i18n-210f453b.js.map +0 -1
- package/dist/cjs/store-7461838a.js.br +0 -0
- package/dist/cjs/store-7461838a.js.gz +0 -0
- package/dist/cjs/store-7461838a.js.map +0 -1
- package/dist/cjs/utils-7e65b55d.js.br +0 -0
- package/dist/cjs/utils-7e65b55d.js.gz +0 -0
- package/dist/cjs/utils-7e65b55d.js.map +0 -1
- package/dist/esm/grw-filter_8.entry.js.br +0 -0
- package/dist/esm/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm/grw-filter_8.entry.js.map +0 -1
- package/dist/esm/i18n-301409fd.js.br +0 -0
- package/dist/esm/i18n-301409fd.js.gz +0 -0
- package/dist/esm/i18n-301409fd.js.map +0 -1
- package/dist/esm/store-23a2ba46.js.br +0 -0
- package/dist/esm/store-23a2ba46.js.gz +0 -0
- package/dist/esm/store-23a2ba46.js.map +0 -1
- package/dist/esm/utils-39d36282.js.br +0 -0
- package/dist/esm/utils-39d36282.js.gz +0 -0
- package/dist/esm/utils-39d36282.js.map +0 -1
- package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.map +0 -1
- package/dist/esm-es5/i18n-301409fd.js +0 -2
- package/dist/esm-es5/i18n-301409fd.js.br +0 -0
- package/dist/esm-es5/i18n-301409fd.js.gz +0 -0
- package/dist/esm-es5/i18n-301409fd.js.map +0 -1
- package/dist/esm-es5/store-23a2ba46.js.br +0 -0
- package/dist/esm-es5/store-23a2ba46.js.gz +0 -0
- package/dist/esm-es5/store-23a2ba46.js.map +0 -1
- package/dist/esm-es5/utils-39d36282.js +0 -2
- package/dist/esm-es5/utils-39d36282.js.br +0 -0
- package/dist/esm-es5/utils-39d36282.js.gz +0 -0
- package/dist/esm-es5/utils-39d36282.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0218dbae.js +0 -2
- package/dist/geotrek-rando-widget/p-0218dbae.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0218dbae.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0218dbae.js.map +0 -1
- package/dist/geotrek-rando-widget/p-029e494f.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-029e494f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-029e494f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-029e494f.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-21c8e513.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-21c8e513.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-574221ae.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-574221ae.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-731c8990.system.js +0 -2
- package/dist/geotrek-rando-widget/p-731c8990.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-731c8990.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-731c8990.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-890b281b.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-890b281b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-890b281b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-890b281b.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-a1c76660.system.js +0 -2
- package/dist/geotrek-rando-widget/p-a1c76660.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a1c76660.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a1c76660.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-a7ce321e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-a7ce321e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a7ce321e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a7ce321e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ad723f74.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad723f74.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ad723f74.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c1eb1f30.js +0 -2
- package/dist/geotrek-rando-widget/p-c1eb1f30.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c1eb1f30.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c1eb1f30.js.map +0 -1
- package/dist/geotrek-rando-widget/p-df9a7637.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-df9a7637.entry.js.gz +0 -0
- /package/dist/geotrek-rando-widget/{p-574221ae.entry.js.map → p-39bfe711.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-21c8e513.system.entry.js.map → p-bbe147a7.system.entry.js.map} +0 -0
|
@@ -3,15 +3,19 @@ import L from 'leaflet';
|
|
|
3
3
|
import 'leaflet-rotate';
|
|
4
4
|
import 'leaflet.locatecontrol';
|
|
5
5
|
import '@raruto/leaflet-elevation/dist/leaflet-elevation.min.js';
|
|
6
|
+
import 'leaflet.markercluster/dist/leaflet.markercluster.js';
|
|
6
7
|
import state, { onChange, reset } from 'store/store';
|
|
7
8
|
import { translate } from 'i18n/i18n';
|
|
9
|
+
import { getTrekGeometry } from 'services/treks.service';
|
|
8
10
|
export class GrwMap {
|
|
9
11
|
constructor() {
|
|
10
12
|
this.userLayersState = {};
|
|
13
|
+
this.tileLayer = [];
|
|
11
14
|
this.handleTreksWithinBoundsBind = this.handleTreksWithinBounds.bind(this);
|
|
12
15
|
this.mapIsReady = false;
|
|
16
|
+
this.nameLayer = undefined;
|
|
13
17
|
this.urlLayer = undefined;
|
|
14
|
-
this.
|
|
18
|
+
this.attributionLayer = undefined;
|
|
15
19
|
this.center = '1, 1';
|
|
16
20
|
this.zoom = 10;
|
|
17
21
|
this.colorPrimaryApp = '#6b0030';
|
|
@@ -54,6 +58,22 @@ export class GrwMap {
|
|
|
54
58
|
this.handleLayerVisibility(event.detail, this.currentPoisLayer);
|
|
55
59
|
}
|
|
56
60
|
}
|
|
61
|
+
onCardTrekMouseOver(event) {
|
|
62
|
+
if (!state.selectedTrekId || state.selectedTrekId !== event.detail) {
|
|
63
|
+
state.selectedTrekId = event.detail;
|
|
64
|
+
this.hideTrekLine();
|
|
65
|
+
this.showTrekLine(event.detail);
|
|
66
|
+
this.addSelectedCurrentTrek(event.detail);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
oncardTrekMouseLeave() {
|
|
70
|
+
if (!this.trekPopupIsOpen) {
|
|
71
|
+
this.trekPopupIsOpen = false;
|
|
72
|
+
state.selectedTrekId = null;
|
|
73
|
+
this.hideTrekLine();
|
|
74
|
+
this.removeSelectedCurrentTrek();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
57
77
|
componentDidLoad() {
|
|
58
78
|
this.map = L.map(this.mapRef, {
|
|
59
79
|
center: this.center.split(',').map(Number),
|
|
@@ -61,10 +81,42 @@ export class GrwMap {
|
|
|
61
81
|
});
|
|
62
82
|
L.control.scale({ metric: true, imperial: false }).addTo(this.map);
|
|
63
83
|
L.control.locate({ showPopup: false }).addTo(this.map);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
84
|
+
const nameLayers = this.nameLayer.split(',');
|
|
85
|
+
const urlLayers = this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url));
|
|
86
|
+
const attributionLayers = this.attributionLayer.split(',');
|
|
87
|
+
urlLayers.forEach((urlLayer, index) => {
|
|
88
|
+
this.tileLayer.push({
|
|
89
|
+
key: `${nameLayers[index]}`,
|
|
90
|
+
value: L.tileLayer(urlLayer, {
|
|
91
|
+
maxZoom: 19,
|
|
92
|
+
attribution: `${attributionLayers[index] && attributionLayers[index] !== '' ? attributionLayers[index].concat(' | ') : ''}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
this.tileLayer[0].value.addTo(this.map);
|
|
97
|
+
if (urlLayers.length > 1) {
|
|
98
|
+
this.layersControl = L.control
|
|
99
|
+
.layers(this.tileLayer.reduce((tileLayers, tileLayer) => Object.assign(tileLayers, { [tileLayer.key]: tileLayer.value }), {}), {}, { collapsed: true })
|
|
100
|
+
.addTo(this.map);
|
|
101
|
+
L.Control.Contract = L.Control.extend({
|
|
102
|
+
onAdd: () => {
|
|
103
|
+
const contractContainer = L.DomUtil.create('div');
|
|
104
|
+
contractContainer.className = 'leaflet-bar leaflet-control';
|
|
105
|
+
const contract = contractContainer.appendChild(L.DomUtil.create('a'));
|
|
106
|
+
contract.href = '#';
|
|
107
|
+
contract.style.backgroundImage = `var(--contract-image-src)`;
|
|
108
|
+
contractContainer.onclick = e => {
|
|
109
|
+
this.bounds && this.map.fitBounds(this.bounds);
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
};
|
|
112
|
+
return contractContainer;
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
L.control.contract = opts => {
|
|
116
|
+
return new L.Control.Contract(opts);
|
|
117
|
+
};
|
|
118
|
+
L.control.contract({ position: 'topleft' }).addTo(this.map);
|
|
119
|
+
}
|
|
68
120
|
if (state.currentTrek) {
|
|
69
121
|
this.addTrek();
|
|
70
122
|
}
|
|
@@ -135,9 +187,10 @@ export class GrwMap {
|
|
|
135
187
|
this.treksLayer = L.geoJSON(treksFeatureCollection, {
|
|
136
188
|
pointToLayer: (geoJsonPoint, latlng) => L.marker(latlng, {
|
|
137
189
|
icon: L.divIcon({
|
|
138
|
-
html: geoJsonPoint.properties.practice ? `<img src=${geoJsonPoint.properties.practice}
|
|
190
|
+
html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,
|
|
139
191
|
className: 'trek-marker',
|
|
140
|
-
iconSize:
|
|
192
|
+
iconSize: 32,
|
|
193
|
+
iconAnchor: [18, 0],
|
|
141
194
|
}),
|
|
142
195
|
autoPanOnFocus: false,
|
|
143
196
|
}),
|
|
@@ -145,21 +198,38 @@ export class GrwMap {
|
|
|
145
198
|
layer.once('click', () => {
|
|
146
199
|
const trekDeparturePopup = L.DomUtil.create('div');
|
|
147
200
|
trekDeparturePopup.className = 'trek-departure-popup';
|
|
148
|
-
trekDeparturePopup.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
|
|
149
|
-
const trekName = L.DomUtil.create('div');
|
|
150
|
-
trekName.innerHTML = geoJsonPoint.properties.name;
|
|
151
|
-
trekName.className = 'trek-name';
|
|
152
201
|
if (geoJsonPoint.properties.imgSrc) {
|
|
153
|
-
trekName.className += ' trek-name-margin-top';
|
|
154
202
|
const trekImg = L.DomUtil.create('img');
|
|
155
203
|
trekImg.src = geoJsonPoint.properties.imgSrc;
|
|
156
204
|
trekDeparturePopup.appendChild(trekImg);
|
|
157
205
|
}
|
|
206
|
+
const trekName = L.DomUtil.create('div');
|
|
207
|
+
trekName.innerHTML = geoJsonPoint.properties.name;
|
|
208
|
+
trekName.className = 'trek-name';
|
|
158
209
|
trekDeparturePopup.appendChild(trekName);
|
|
210
|
+
const trekButton = L.DomUtil.create('button');
|
|
211
|
+
trekButton.innerHTML = 'Afficher le détail';
|
|
212
|
+
trekButton.className = 'trek-button';
|
|
213
|
+
trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
|
|
214
|
+
trekDeparturePopup.appendChild(trekButton);
|
|
159
215
|
layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
|
|
160
216
|
});
|
|
217
|
+
layer.on('mouseover', e => {
|
|
218
|
+
this.hideTrekLine();
|
|
219
|
+
this.showTrekLine(geoJsonPoint.properties.id);
|
|
220
|
+
this.addSelectedCurrentTrek(geoJsonPoint.properties.id, e.latlng);
|
|
221
|
+
});
|
|
161
222
|
},
|
|
162
|
-
})
|
|
223
|
+
});
|
|
224
|
+
this.treksMarkerClusterGroup = L.markerClusterGroup({
|
|
225
|
+
showCoverageOnHover: false,
|
|
226
|
+
removeOutsideVisibleBounds: false,
|
|
227
|
+
iconCreateFunction: cluster => {
|
|
228
|
+
return L.divIcon({ html: '<div>' + cluster.getChildCount() + '</div>', className: 'treks-marker-cluster-group-icon', iconSize: 48, iconAnchor: [24, 24] });
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
this.treksMarkerClusterGroup.addLayer(this.treksLayer);
|
|
232
|
+
this.map.addLayer(this.treksMarkerClusterGroup);
|
|
163
233
|
}
|
|
164
234
|
else {
|
|
165
235
|
if (trekscurrentDepartureCoordinates.length > 0) {
|
|
@@ -170,6 +240,8 @@ export class GrwMap {
|
|
|
170
240
|
}
|
|
171
241
|
this.treksLayer.clearLayers();
|
|
172
242
|
this.treksLayer.addData(treksFeatureCollection);
|
|
243
|
+
this.treksMarkerClusterGroup.clearLayers();
|
|
244
|
+
this.treksMarkerClusterGroup.addLayer(this.treksLayer);
|
|
173
245
|
}
|
|
174
246
|
this.bounds && this.map.fitBounds(this.bounds);
|
|
175
247
|
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
@@ -178,8 +250,9 @@ export class GrwMap {
|
|
|
178
250
|
removeTreks() {
|
|
179
251
|
if (this.treksLayer) {
|
|
180
252
|
state.currentMapTreksBounds = this.map.getBounds();
|
|
181
|
-
this.map.removeLayer(this.
|
|
253
|
+
this.map.removeLayer(this.treksMarkerClusterGroup);
|
|
182
254
|
this.treksLayer = null;
|
|
255
|
+
this.treksMarkerClusterGroup = null;
|
|
183
256
|
this.map.off('moveend', this.handleTreksWithinBoundsBind);
|
|
184
257
|
}
|
|
185
258
|
}
|
|
@@ -191,6 +264,10 @@ export class GrwMap {
|
|
|
191
264
|
}
|
|
192
265
|
addTrek() {
|
|
193
266
|
var _a;
|
|
267
|
+
this.trekPopupIsOpen = false;
|
|
268
|
+
state.selectedTrekId = null;
|
|
269
|
+
this.hideTrekLine();
|
|
270
|
+
this.removeSelectedCurrentTrek();
|
|
194
271
|
const currentTrekFeature = {
|
|
195
272
|
type: 'Feature',
|
|
196
273
|
geometry: state.currentTrek.geometry,
|
|
@@ -406,24 +483,120 @@ export class GrwMap {
|
|
|
406
483
|
if (this.currentPoisLayer) {
|
|
407
484
|
overlays[translate[state.language].layers.pois] = this.currentPoisLayer;
|
|
408
485
|
}
|
|
409
|
-
this.layersControl
|
|
486
|
+
if (this.layersControl) {
|
|
487
|
+
Object.keys(overlays).forEach(key => {
|
|
488
|
+
this.layersControl.addOverlay(overlays[key], key);
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
this.layersControl = L.control.layers({}, overlays, { collapsed: true }).addTo(this.map);
|
|
493
|
+
}
|
|
410
494
|
this.handleLayersControlEvent();
|
|
411
495
|
this.bounds = L.latLngBounds(state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
412
496
|
this.bounds && this.map.fitBounds(this.bounds);
|
|
413
497
|
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
414
498
|
}
|
|
499
|
+
addSelectedCurrentTrek(id, customCoordinates) {
|
|
500
|
+
var _a;
|
|
501
|
+
const treksFeatureCollection = {
|
|
502
|
+
type: 'FeatureCollection',
|
|
503
|
+
features: [],
|
|
504
|
+
};
|
|
505
|
+
if (state.currentTreks) {
|
|
506
|
+
const trek = state.currentTreks.find(trek => trek.id === id);
|
|
507
|
+
treksFeatureCollection.features.push({
|
|
508
|
+
type: 'Feature',
|
|
509
|
+
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : trek.departure_geom },
|
|
510
|
+
properties: {
|
|
511
|
+
id: trek.id,
|
|
512
|
+
name: trek.name,
|
|
513
|
+
practice: (_a = state.practices.find(practice => practice.id === trek.practice)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
514
|
+
imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,
|
|
515
|
+
},
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
this.removeSelectedCurrentTrek();
|
|
519
|
+
state.selectedTrekId = id;
|
|
520
|
+
this.selectedCurrentTrekLayer = L.geoJSON(treksFeatureCollection, {
|
|
521
|
+
pointToLayer: (geoJsonPoint, latlng) => L.marker(latlng, {
|
|
522
|
+
zIndexOffset: 4000000,
|
|
523
|
+
icon: L.divIcon({
|
|
524
|
+
html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,
|
|
525
|
+
className: 'selected-trek-marker',
|
|
526
|
+
iconSize: 64,
|
|
527
|
+
iconAnchor: [36, 36],
|
|
528
|
+
}),
|
|
529
|
+
autoPanOnFocus: false,
|
|
530
|
+
}),
|
|
531
|
+
onEachFeature: (geoJsonPoint, layer) => {
|
|
532
|
+
layer.once('click', () => {
|
|
533
|
+
const trekDeparturePopup = L.DomUtil.create('div');
|
|
534
|
+
trekDeparturePopup.className = 'trek-departure-popup';
|
|
535
|
+
if (geoJsonPoint.properties.imgSrc) {
|
|
536
|
+
const trekImg = L.DomUtil.create('img');
|
|
537
|
+
trekImg.src = geoJsonPoint.properties.imgSrc;
|
|
538
|
+
trekDeparturePopup.appendChild(trekImg);
|
|
539
|
+
}
|
|
540
|
+
const trekName = L.DomUtil.create('div');
|
|
541
|
+
trekName.innerHTML = geoJsonPoint.properties.name;
|
|
542
|
+
trekName.className = 'trek-name';
|
|
543
|
+
trekDeparturePopup.appendChild(trekName);
|
|
544
|
+
const trekButton = L.DomUtil.create('button');
|
|
545
|
+
trekButton.innerHTML = 'Afficher le détail';
|
|
546
|
+
trekButton.className = 'trek-button';
|
|
547
|
+
trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
|
|
548
|
+
trekDeparturePopup.appendChild(trekButton);
|
|
549
|
+
layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
|
|
550
|
+
});
|
|
551
|
+
layer.on('mouseout', () => {
|
|
552
|
+
if (!this.trekPopupIsOpen) {
|
|
553
|
+
state.selectedTrekId = null;
|
|
554
|
+
this.hideTrekLine();
|
|
555
|
+
this.removeSelectedCurrentTrek();
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
layer.on('popupopen', () => {
|
|
559
|
+
this.trekPopupIsOpen = Boolean(state.selectedTrekId);
|
|
560
|
+
});
|
|
561
|
+
layer.on('popupclose', () => {
|
|
562
|
+
if (state.selectedTrekId) {
|
|
563
|
+
this.trekPopupIsOpen = false;
|
|
564
|
+
state.selectedTrekId = null;
|
|
565
|
+
this.hideTrekLine();
|
|
566
|
+
this.removeSelectedCurrentTrek();
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
}).addTo(this.map);
|
|
571
|
+
}
|
|
572
|
+
removeSelectedCurrentTrek() {
|
|
573
|
+
state.selectedTrekId = null;
|
|
574
|
+
this.selectedCurrentTrekLayer && this.map.removeLayer(this.selectedCurrentTrekLayer);
|
|
575
|
+
this.selectedCurrentTrekLayer = null;
|
|
576
|
+
}
|
|
415
577
|
handleLayersControlEvent() {
|
|
416
578
|
const userLayersState = this.layersControl._layerControlInputs;
|
|
417
579
|
userLayersState.forEach((userLayerState) => {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
580
|
+
if (this.layersControl._layers.find(layer => layer.layer._leaflet_id === userLayerState.layerId).overlay) {
|
|
581
|
+
userLayerState.onchange = event => {
|
|
582
|
+
this.userLayersState[userLayerState.layerId] = event.target.checked;
|
|
583
|
+
};
|
|
584
|
+
}
|
|
421
585
|
});
|
|
422
586
|
}
|
|
423
587
|
removeTrek() {
|
|
424
588
|
if (this.layersControl) {
|
|
425
|
-
this.
|
|
426
|
-
|
|
589
|
+
if (!this.layersControl._layers.some(layer => !layer.overlay)) {
|
|
590
|
+
this.map.removeControl(this.layersControl);
|
|
591
|
+
this.layersControl = null;
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
this.layersControl._layers
|
|
595
|
+
.filter(layer => layer.overlay)
|
|
596
|
+
.forEach(layer => {
|
|
597
|
+
this.layersControl.removeLayer(layer.layer);
|
|
598
|
+
});
|
|
599
|
+
}
|
|
427
600
|
}
|
|
428
601
|
if (this.elevationControl) {
|
|
429
602
|
this.elevationControl.clear();
|
|
@@ -460,8 +633,30 @@ export class GrwMap {
|
|
|
460
633
|
reset();
|
|
461
634
|
}
|
|
462
635
|
}
|
|
636
|
+
showTrekLine(id) {
|
|
637
|
+
getTrekGeometry(id).then(response => {
|
|
638
|
+
const currentTrekFeature = {
|
|
639
|
+
type: 'Feature',
|
|
640
|
+
geometry: response.geometry,
|
|
641
|
+
properties: {},
|
|
642
|
+
};
|
|
643
|
+
this.currentTrekLayer = L.geoJSON(currentTrekFeature, {
|
|
644
|
+
style: () => ({
|
|
645
|
+
color: this.colorTrekLine,
|
|
646
|
+
}),
|
|
647
|
+
interactive: false,
|
|
648
|
+
}).addTo(this.map);
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
hideTrekLine() {
|
|
652
|
+
if (this.currentTrekLayer) {
|
|
653
|
+
this.map.removeLayer(this.currentTrekLayer);
|
|
654
|
+
this.currentTrekLayer = null;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
463
657
|
render() {
|
|
464
658
|
const layersImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/layers.svg`);
|
|
659
|
+
const contractImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/contract.svg`);
|
|
465
660
|
return (h(Host, { style: {
|
|
466
661
|
'--color-primary-app': this.colorPrimaryApp,
|
|
467
662
|
'--color-on-surface': this.colorOnSurface,
|
|
@@ -471,6 +666,7 @@ export class GrwMap {
|
|
|
471
666
|
'--color-poi-icon': this.colorPoiIcon,
|
|
472
667
|
'--color-trek-line': this.colorTrekLine,
|
|
473
668
|
'--layers-image-src': `url(${layersImageSrc})`,
|
|
669
|
+
'--contract-image-src': `url(${contractImageSrc})`,
|
|
474
670
|
'--map-bottom-space-height': this.isLargeView ? '0px' : '70px',
|
|
475
671
|
} }, h("div", { id: "map", style: {}, class: state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), state.currentTrek && (h("div", null, h("div", { id: "elevation", ref: el => (this.elevationRef = el) }), h("div", { class: "map-bottom-space" }))), !this.mapIsReady && (h("div", { class: "map-loader-container" }, h("span", { class: "loader" })))));
|
|
476
672
|
}
|
|
@@ -487,6 +683,23 @@ export class GrwMap {
|
|
|
487
683
|
}
|
|
488
684
|
static get properties() {
|
|
489
685
|
return {
|
|
686
|
+
"nameLayer": {
|
|
687
|
+
"type": "string",
|
|
688
|
+
"mutable": false,
|
|
689
|
+
"complexType": {
|
|
690
|
+
"original": "string",
|
|
691
|
+
"resolved": "string",
|
|
692
|
+
"references": {}
|
|
693
|
+
},
|
|
694
|
+
"required": false,
|
|
695
|
+
"optional": false,
|
|
696
|
+
"docs": {
|
|
697
|
+
"tags": [],
|
|
698
|
+
"text": ""
|
|
699
|
+
},
|
|
700
|
+
"attribute": "name-layer",
|
|
701
|
+
"reflect": false
|
|
702
|
+
},
|
|
490
703
|
"urlLayer": {
|
|
491
704
|
"type": "string",
|
|
492
705
|
"mutable": false,
|
|
@@ -504,7 +717,7 @@ export class GrwMap {
|
|
|
504
717
|
"attribute": "url-layer",
|
|
505
718
|
"reflect": false
|
|
506
719
|
},
|
|
507
|
-
"
|
|
720
|
+
"attributionLayer": {
|
|
508
721
|
"type": "string",
|
|
509
722
|
"mutable": false,
|
|
510
723
|
"complexType": {
|
|
@@ -518,7 +731,7 @@ export class GrwMap {
|
|
|
518
731
|
"tags": [],
|
|
519
732
|
"text": ""
|
|
520
733
|
},
|
|
521
|
-
"attribute": "attribution",
|
|
734
|
+
"attribute": "attribution-layer",
|
|
522
735
|
"reflect": false
|
|
523
736
|
},
|
|
524
737
|
"center": {
|
|
@@ -817,6 +1030,18 @@ export class GrwMap {
|
|
|
817
1030
|
"target": "window",
|
|
818
1031
|
"capture": false,
|
|
819
1032
|
"passive": false
|
|
1033
|
+
}, {
|
|
1034
|
+
"name": "cardTrekMouseOver",
|
|
1035
|
+
"method": "onCardTrekMouseOver",
|
|
1036
|
+
"target": "window",
|
|
1037
|
+
"capture": false,
|
|
1038
|
+
"passive": false
|
|
1039
|
+
}, {
|
|
1040
|
+
"name": "cardTrekMouseLeave",
|
|
1041
|
+
"method": "oncardTrekMouseLeave",
|
|
1042
|
+
"target": "window",
|
|
1043
|
+
"capture": false,
|
|
1044
|
+
"passive": false
|
|
820
1045
|
}];
|
|
821
1046
|
}
|
|
822
1047
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grw-map.js","sourceRoot":"","sources":["../../../src/components/grw-map/grw-map.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,YAAY,EAAE,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build, Listen } from '@stencil/core';\nimport { Feature, FeatureCollection } from 'geojson';\nimport L from 'leaflet';\nimport 'leaflet-rotate';\nimport 'leaflet.locatecontrol';\nimport '@raruto/leaflet-elevation/dist/leaflet-elevation.min.js';\nimport state, { onChange, reset } from 'store/store';\nimport { translate } from 'i18n/i18n';\n\n@Component({\n tag: 'grw-map',\n styleUrl: 'grw-map.scss',\n})\nexport class GrwMap {\n mapRef: HTMLElement;\n elevationRef: HTMLElement;\n @Event() trekCardPress: EventEmitter<number>;\n @State() mapIsReady = false;\n @Prop() urlLayer: string;\n @Prop() attribution: string;\n @Prop() center = '1, 1';\n @Prop() zoom = 10;\n\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorBackground = '#fef7ff';\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorSensitiveArea = '\t#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isLargeView = false;\n map: L.Map;\n resizeObserver: ResizeObserver;\n bounds;\n treksLayer: L.GeoJSON<any>;\n currentTrekLayer: L.GeoJSON<any>;\n currentPointsReferenceLayer: L.GeoJSON<any>;\n currentParkingLayer: L.GeoJSON<any>;\n currentSensitiveAreasLayer: L.GeoJSON<any>;\n currentPoisLayer: L.GeoJSON<any>;\n currentInformationDesksLayer: L.GeoJSON<any>;\n elevationControl: L.Control.Layers;\n layersControl: L.Control.Layers;\n userLayersState: {\n [key: number]: boolean;\n } = {};\n\n handleTreksWithinBoundsBind: (event: any) => void = this.handleTreksWithinBounds.bind(this);\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap(event: CustomEvent<{ latitude: number; longitude: number }>) {\n this.map.setView(new L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });\n }\n\n @Listen('descriptionReferenceIsInViewport', { target: 'window' })\n descriptionReferenceIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPointsReferenceLayer) {\n this.handleLayerVisibility(event.detail, this.currentPointsReferenceLayer);\n }\n }\n\n @Listen('parkingIsInViewport', { target: 'window' })\n parkingIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentParkingLayer) {\n this.handleLayerVisibility(event.detail, this.currentParkingLayer);\n }\n }\n\n @Listen('informationDeskIsInViewport', { target: 'window' })\n onInformationDesksIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentInformationDesksLayer) {\n this.handleLayerVisibility(event.detail, this.currentInformationDesksLayer);\n }\n }\n\n @Listen('sensitiveAreaIsInViewport', { target: 'window' })\n sensitiveAreaIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentSensitiveAreasLayer) {\n this.handleLayerVisibility(event.detail, this.currentSensitiveAreasLayer);\n }\n }\n\n @Listen('poiIsInViewport', { target: 'window' })\n poiIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPoisLayer) {\n this.handleLayerVisibility(event.detail, this.currentPoisLayer);\n }\n }\n\n componentDidLoad() {\n this.map = L.map(this.mapRef, {\n center: this.center.split(',').map(Number) as L.LatLngExpression,\n zoom: this.zoom,\n });\n\n L.control.scale({ metric: true, imperial: false }).addTo(this.map);\n (L.control as any).locate({ showPopup: false }).addTo(this.map);\n\n L.tileLayer(this.urlLayer, {\n maxZoom: 19,\n attribution: this.attribution,\n }).addTo(this.map);\n\n if (state.currentTrek) {\n this.addTrek();\n } else if (state.currentTreks) {\n this.addTreks();\n }\n\n onChange('currentTreks', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else if (state.currentTreks) {\n this.removeTrek();\n this.addTreks();\n }\n });\n\n onChange('currentTrek', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else {\n this.removeTrek();\n this.addTreks();\n }\n });\n }\n\n handleLayerVisibility(visible: boolean, layer: L.GeoJSON) {\n if (visible && !this.map.hasLayer(layer)) {\n layer.addTo(this.map);\n } else if (this.map.hasLayer(layer) && !this.userLayersState[(layer as any)._leaflet_id]) {\n this.map.removeLayer(layer);\n }\n this.handleLayersControlEvent();\n }\n\n addTreks() {\n const trekscurrentDepartureCoordinates = [];\n const treksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n if (state.currentTreks) {\n for (const trek of state.currentTreks) {\n trekscurrentDepartureCoordinates.push(trek.departure_geom);\n treksFeatureCollection.features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: trek.departure_geom },\n properties: {\n id: trek.id,\n name: trek.name,\n practice: state.practices.find(practice => practice.id === trek.practice)?.pictogram,\n imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,\n },\n });\n }\n }\n\n if (!this.treksLayer) {\n if (trekscurrentDepartureCoordinates.length > 0 && !state.currentMapTreksBounds) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n if (state.currentMapTreksBounds) {\n this.bounds = state.currentMapTreksBounds;\n }\n }\n this.treksLayer = L.geoJSON(treksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.practice ? `<img src=${geoJsonPoint.properties.practice} />` : `<img />`,\n className: 'trek-marker',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('click', () => {\n const trekDeparturePopup = L.DomUtil.create('div');\n trekDeparturePopup.className = 'trek-departure-popup';\n trekDeparturePopup.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);\n const trekName = L.DomUtil.create('div');\n trekName.innerHTML = geoJsonPoint.properties.name;\n trekName.className = 'trek-name';\n if (geoJsonPoint.properties.imgSrc) {\n trekName.className += ' trek-name-margin-top';\n const trekImg = L.DomUtil.create('img');\n trekImg.src = geoJsonPoint.properties.imgSrc;\n trekDeparturePopup.appendChild(trekImg);\n }\n trekDeparturePopup.appendChild(trekName);\n layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false } as any).openPopup();\n });\n },\n }).addTo(this.map);\n } else {\n if (trekscurrentDepartureCoordinates.length > 0) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n this.map.fire('moveend');\n }\n this.treksLayer.clearLayers();\n this.treksLayer.addData(treksFeatureCollection);\n }\n\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n\n this.map.on('moveend', this.handleTreksWithinBoundsBind);\n }\n\n removeTreks() {\n if (this.treksLayer) {\n state.currentMapTreksBounds = this.map.getBounds();\n this.map.removeLayer(this.treksLayer);\n this.treksLayer = null;\n this.map.off('moveend', this.handleTreksWithinBoundsBind);\n }\n }\n\n handleTreksWithinBounds() {\n if (\n (state.currentTreks && !state.currentMapTreksBounds) ||\n (state.currentTreks && state.currentMapTreksBounds && state.currentMapTreksBounds.toBBoxString() !== this.map.getBounds().toBBoxString())\n ) {\n state.treksWithinBounds = state.currentTreks.filter(trek => this.map.getBounds().contains(L.latLng(trek.departure_geom[1], trek.departure_geom[0])));\n }\n }\n\n addTrek() {\n const currentTrekFeature: Feature = {\n type: 'Feature',\n geometry: state.currentTrek.geometry,\n properties: {},\n };\n\n this.currentTrekLayer = L.geoJSON(currentTrekFeature, {\n style: () => ({\n color: 'transparent',\n }),\n interactive: false,\n }).addTo(this.map);\n\n if (state.currentTrek.parking_location) {\n const currentParking: Feature = {\n type: 'Feature',\n properties: {},\n geometry: { type: 'Point', coordinates: state.currentTrek.parking_location },\n };\n this.currentParkingLayer = L.geoJSON(currentParking, {\n pointToLayer: (_geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: '<div>P</div>',\n className: 'parking-icon',\n iconSize: 48,\n iconAnchor: [0, 48],\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any),\n });\n }\n\n if (state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) {\n const currentSensitiveAreasFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const sensitiveArea of state.currentSensitiveAreas) {\n currentSensitiveAreasFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: sensitiveArea.name },\n geometry: sensitiveArea.geometry,\n });\n }\n\n this.currentSensitiveAreasLayer = L.geoJSON(currentSensitiveAreasFeatureCollection, {\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const sensitiveAreaTooltip = L.DomUtil.create('div');\n sensitiveAreaTooltip.className = 'sensitive-area-tooltip';\n const sensitiveAreaName = L.DomUtil.create('div');\n sensitiveAreaName.innerHTML = geoJsonPoint.properties.name;\n sensitiveAreaName.className = 'sensitive-area-name';\n sensitiveAreaTooltip.appendChild(sensitiveAreaName);\n layer.bindTooltip(sensitiveAreaTooltip).openTooltip();\n });\n },\n style: () => ({ color: this.colorSensitiveArea }),\n });\n }\n\n if (state.currentPois && state.currentPois.length > 0) {\n const currentPoisFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentPoi of state.currentPois) {\n currentPoisFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentPoi.name, type_pictogram: state.poiTypes.find(poiType => poiType.id === currentPoi.type)?.pictogram },\n geometry: currentPoi.geometry,\n });\n }\n\n this.currentPoisLayer = L.geoJSON(currentPoisFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'poi-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const poiTooltip = L.DomUtil.create('div');\n poiTooltip.className = 'poi-tooltip';\n const poiName = L.DomUtil.create('div');\n poiName.innerHTML = geoJsonPoint.properties.name;\n poiName.className = 'poi-name';\n poiTooltip.appendChild(poiName);\n layer.bindTooltip(poiTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentInformationDesks && state.currentInformationDesks.length > 0) {\n const currentInformationDesksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentInformationDesk of state.currentInformationDesks.filter(currentInformationDesks =>\n state.currentTrek.information_desks.includes(currentInformationDesks.id),\n )) {\n if (currentInformationDesk.latitude && currentInformationDesk.longitude) {\n currentInformationDesksFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentInformationDesk.name, type_pictogram: currentInformationDesk.type.pictogram },\n geometry: { type: 'Point', coordinates: [Number(currentInformationDesk.longitude), Number(currentInformationDesk.latitude)] },\n });\n }\n }\n\n this.currentInformationDesksLayer = L.geoJSON(currentInformationDesksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'information-desks-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const informationDesksTooltip = L.DomUtil.create('div');\n informationDesksTooltip.className = 'information-desks-tooltip';\n const informationDesksName = L.DomUtil.create('div');\n informationDesksName.innerHTML = geoJsonPoint.properties.name;\n informationDesksName.className = 'information-desks-name';\n informationDesksTooltip.appendChild(informationDesksName);\n layer.bindTooltip(informationDesksTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentTrek.points_reference) {\n const currentPointsReferenceFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n currentPointsReferenceFeatureCollection.features.push({\n type: 'Feature',\n properties: {},\n geometry: state.currentTrek.points_reference,\n });\n\n let index = 0;\n this.currentPointsReferenceLayer = L.geoJSON(currentPointsReferenceFeatureCollection, {\n pointToLayer: (_geoJsonPoint, latlng) => {\n index += 1;\n return L.marker(latlng, {\n icon: L.divIcon({\n html: index,\n className: 'point-reference-icon',\n iconSize: 24,\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any);\n },\n });\n }\n const elevationOptions = {\n srcFolder: 'https://unpkg.com/@raruto/leaflet-elevation/src/',\n elevationDiv: `#elevation`,\n theme: `custom-theme${!this.useGradient ? ' use-theme-color' : ''}`,\n detached: true,\n height: 250,\n wptIcons: true,\n wptLabels: true,\n collapsed: false,\n autohide: false,\n distanceMarkers: { distance: false, direction: true },\n hotline: this.useGradient,\n closeBtn: false,\n summary: false,\n time: false,\n timestamps: false,\n legend: false,\n downloadLink: false,\n autofitBounds: false,\n ruler: false,\n edgeScale: false,\n waypoints: false,\n almostOver: false,\n speed: false,\n slope: false,\n acceleration: false,\n reverseCoords: false,\n imperial: false,\n dragging: false,\n zooming: false,\n handlers: ['Altitude', 'Distance', 'Slope', 'LinearGradient'],\n linearGradient: {\n attr: 'z',\n path: 'altitude',\n range: { 0.0: '#008800', 0.5: '#ffff00', 1.0: '#ff0000' },\n min: 'elevation_min',\n max: 'elevation_max',\n },\n };\n this.elevationControl = (L.control as any).elevation({ ...elevationOptions }).addTo(this.map);\n const elevation = JSON.stringify({\n name: `${state.currentTrek.name}`,\n type: 'FeatureCollection',\n features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates: state.currentTrek.geometry.coordinates }, properties: null }],\n });\n (this.elevationControl as any).load(elevation);\n\n const overlays = {};\n if (this.currentPointsReferenceLayer) {\n overlays[translate[state.language].layers.pointsReference] = this.currentPointsReferenceLayer;\n }\n if (this.currentParkingLayer) {\n overlays[translate[state.language].layers.parking] = this.currentParkingLayer;\n }\n if (this.currentSensitiveAreasLayer) {\n overlays[translate[state.language].layers.sensitiveArea] = this.currentSensitiveAreasLayer;\n }\n if (this.currentInformationDesksLayer) {\n overlays[translate[state.language].layers.informationPlaces] = this.currentInformationDesksLayer;\n }\n if (this.currentPoisLayer) {\n overlays[translate[state.language].layers.pois] = this.currentPoisLayer;\n }\n this.layersControl = L.control.layers(null, overlays, { collapsed: true }).addTo(this.map);\n this.handleLayersControlEvent();\n\n this.bounds = L.latLngBounds(state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n }\n\n handleLayersControlEvent() {\n const userLayersState: HTMLInputElement[] = (this.layersControl as any)._layerControlInputs;\n userLayersState.forEach((userLayerState: any) => {\n userLayerState.onchange = event => {\n this.userLayersState[userLayerState.layerId] = (event.target as any).checked;\n };\n });\n }\n\n removeTrek() {\n if (this.layersControl) {\n this.map.removeControl(this.layersControl);\n this.layersControl = null;\n }\n\n if (this.elevationControl) {\n (this.elevationControl as any).clear();\n this.map.removeControl(this.elevationControl);\n this.elevationControl = null;\n }\n\n if (this.currentTrekLayer) {\n this.map.removeLayer(this.currentTrekLayer);\n this.currentTrekLayer = null;\n }\n\n if (this.currentParkingLayer) {\n this.map.removeLayer(this.currentParkingLayer);\n this.currentParkingLayer = null;\n }\n\n if (this.currentSensitiveAreasLayer) {\n this.map.removeLayer(this.currentSensitiveAreasLayer);\n this.currentSensitiveAreasLayer = null;\n }\n\n if (this.currentPoisLayer) {\n this.map.removeLayer(this.currentPoisLayer);\n this.currentPoisLayer = null;\n }\n\n if (this.currentInformationDesksLayer) {\n this.map.removeLayer(this.currentInformationDesksLayer);\n this.currentInformationDesksLayer = null;\n }\n\n if (this.currentPointsReferenceLayer) {\n this.map.removeLayer(this.currentPointsReferenceLayer);\n this.currentPointsReferenceLayer = null;\n }\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n render() {\n const layersImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/layers.svg`);\n return (\n <Host\n style={{\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-background': this.colorBackground,\n '--color-poi-icon': this.colorPoiIcon,\n '--color-trek-line': this.colorTrekLine,\n '--layers-image-src': `url(${layersImageSrc})`,\n '--map-bottom-space-height': this.isLargeView ? '0px' : '70px',\n }}\n >\n <div id=\"map\" style={{}} class={state.currentTrek ? 'trek-map' : 'treks-map'} ref={el => (this.mapRef = el)}></div>\n {state.currentTrek && (\n <div>\n <div id=\"elevation\" ref={el => (this.elevationRef = el)}></div>\n <div class=\"map-bottom-space\"></div>\n </div>\n )}\n\n {!this.mapIsReady && (\n <div class=\"map-loader-container\">\n <span class=\"loader\"></span>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"grw-map.js","sourceRoot":"","sources":["../../../src/components/grw-map/grw-map.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAElH,OAAO,CAAoC,MAAM,SAAS,CAAC;AAC3D,OAAO,gBAAgB,CAAC;AACxB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yDAAyD,CAAC;AACjE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAA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,CAAC,MAAM;OAC/D;MAED,WAAK,EAAE,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,GAAQ;MAClH,KAAK,CAAC,WAAW,IAAI,CACpB;QACE,WAAK,EAAE,EAAC,WAAW,EAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,GAAQ;QAC/D,WAAK,KAAK,EAAC,kBAAkB,GAAO,CAChC,CACP;MAEA,CAAC,IAAI,CAAC,UAAU,IAAI,CACnB,WAAK,KAAK,EAAC,sBAAsB;QAC/B,YAAM,KAAK,EAAC,QAAQ,GAAQ,CACxB,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build, Listen } from '@stencil/core';\nimport { Feature, FeatureCollection } from 'geojson';\nimport L, { MarkerClusterGroup, TileLayer } from 'leaflet';\nimport 'leaflet-rotate';\nimport 'leaflet.locatecontrol';\nimport '@raruto/leaflet-elevation/dist/leaflet-elevation.min.js';\nimport 'leaflet.markercluster/dist/leaflet.markercluster.js';\nimport state, { onChange, reset } from 'store/store';\nimport { translate } from 'i18n/i18n';\nimport { getTrekGeometry } from 'services/treks.service';\n\n@Component({\n tag: 'grw-map',\n styleUrl: 'grw-map.scss',\n})\nexport class GrwMap {\n mapRef: HTMLElement;\n elevationRef: HTMLElement;\n @Event() trekCardPress: EventEmitter<number>;\n @State() mapIsReady = false;\n @Prop() nameLayer: string;\n @Prop() urlLayer: string;\n @Prop() attributionLayer: string;\n @Prop() center = '1, 1';\n @Prop() zoom = 10;\n\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorBackground = '#fef7ff';\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorSensitiveArea = '\t#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isLargeView = false;\n map: L.Map;\n resizeObserver: ResizeObserver;\n bounds;\n treksLayer: L.GeoJSON<any>;\n TreksLayer: L.GeoJSON<any>;\n treksMarkerClusterGroup: MarkerClusterGroup;\n currentTrekLayer: L.GeoJSON<any>;\n selectedCurrentTrekLayer: L.GeoJSON<any>;\n currentPointsReferenceLayer: L.GeoJSON<any>;\n currentParkingLayer: L.GeoJSON<any>;\n currentSensitiveAreasLayer: L.GeoJSON<any>;\n currentPoisLayer: L.GeoJSON<any>;\n currentInformationDesksLayer: L.GeoJSON<any>;\n elevationControl: L.Control.Layers;\n layersControl: L.Control.Layers;\n userLayersState: {\n [key: number]: boolean;\n } = {};\n tileLayer: { key: string; value: TileLayer }[] = [];\n trekPopupIsOpen: boolean;\n\n handleTreksWithinBoundsBind: (event: any) => void = this.handleTreksWithinBounds.bind(this);\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap(event: CustomEvent<{ latitude: number; longitude: number }>) {\n this.map.setView(new L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });\n }\n\n @Listen('descriptionReferenceIsInViewport', { target: 'window' })\n descriptionReferenceIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPointsReferenceLayer) {\n this.handleLayerVisibility(event.detail, this.currentPointsReferenceLayer);\n }\n }\n\n @Listen('parkingIsInViewport', { target: 'window' })\n parkingIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentParkingLayer) {\n this.handleLayerVisibility(event.detail, this.currentParkingLayer);\n }\n }\n\n @Listen('informationDeskIsInViewport', { target: 'window' })\n onInformationDesksIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentInformationDesksLayer) {\n this.handleLayerVisibility(event.detail, this.currentInformationDesksLayer);\n }\n }\n\n @Listen('sensitiveAreaIsInViewport', { target: 'window' })\n sensitiveAreaIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentSensitiveAreasLayer) {\n this.handleLayerVisibility(event.detail, this.currentSensitiveAreasLayer);\n }\n }\n\n @Listen('poiIsInViewport', { target: 'window' })\n poiIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPoisLayer) {\n this.handleLayerVisibility(event.detail, this.currentPoisLayer);\n }\n }\n\n @Listen('cardTrekMouseOver', { target: 'window' })\n onCardTrekMouseOver(event: CustomEvent<number>) {\n if (!state.selectedTrekId || state.selectedTrekId !== event.detail) {\n state.selectedTrekId = event.detail;\n this.hideTrekLine();\n this.showTrekLine(event.detail);\n this.addSelectedCurrentTrek(event.detail);\n }\n }\n\n @Listen('cardTrekMouseLeave', { target: 'window' })\n oncardTrekMouseLeave() {\n if (!this.trekPopupIsOpen) {\n this.trekPopupIsOpen = false;\n state.selectedTrekId = null;\n this.hideTrekLine();\n this.removeSelectedCurrentTrek();\n }\n }\n\n componentDidLoad() {\n this.map = L.map(this.mapRef, {\n center: this.center.split(',').map(Number) as L.LatLngExpression,\n zoom: this.zoom,\n });\n\n L.control.scale({ metric: true, imperial: false }).addTo(this.map);\n (L.control as any).locate({ showPopup: false }).addTo(this.map);\n\n const nameLayers = this.nameLayer.split(',');\n\n const urlLayers = this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url));\n\n const attributionLayers = this.attributionLayer.split(',');\n urlLayers.forEach((urlLayer, index) => {\n this.tileLayer.push({\n key: `${nameLayers[index]}`,\n value: L.tileLayer(urlLayer, {\n maxZoom: 19,\n attribution: `${\n attributionLayers[index] && attributionLayers[index] !== '' ? attributionLayers[index].concat(' | ') : ''\n }Powered by <a target=\"_blank\" href=\"https://geotrek.fr/\">Geotrek</a>`,\n }),\n });\n });\n this.tileLayer[0].value.addTo(this.map);\n\n if (urlLayers.length > 1) {\n this.layersControl = L.control\n .layers(\n this.tileLayer.reduce((tileLayers, tileLayer) => Object.assign(tileLayers, { [tileLayer.key]: tileLayer.value }), {}),\n {},\n { collapsed: true },\n )\n .addTo(this.map);\n\n (L.Control as any).Contract = L.Control.extend({\n onAdd: () => {\n const contractContainer = L.DomUtil.create('div');\n contractContainer.className = 'leaflet-bar leaflet-control';\n const contract = contractContainer.appendChild(L.DomUtil.create('a'));\n contract.href = '#';\n contract.style.backgroundImage = `var(--contract-image-src)`;\n contractContainer.onclick = e => {\n this.bounds && this.map.fitBounds(this.bounds);\n e.preventDefault();\n };\n return contractContainer;\n },\n });\n\n (L.control as any).contract = opts => {\n return new (L.Control as any).Contract(opts);\n };\n\n (L.control as any).contract({ position: 'topleft' }).addTo(this.map);\n }\n\n if (state.currentTrek) {\n this.addTrek();\n } else if (state.currentTreks) {\n this.addTreks();\n }\n\n onChange('currentTreks', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else if (state.currentTreks) {\n this.removeTrek();\n this.addTreks();\n }\n });\n\n onChange('currentTrek', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else {\n this.removeTrek();\n this.addTreks();\n }\n });\n }\n\n handleLayerVisibility(visible: boolean, layer: L.GeoJSON) {\n if (visible && !this.map.hasLayer(layer)) {\n layer.addTo(this.map);\n } else if (this.map.hasLayer(layer) && !this.userLayersState[(layer as any)._leaflet_id]) {\n this.map.removeLayer(layer);\n }\n this.handleLayersControlEvent();\n }\n\n addTreks() {\n const trekscurrentDepartureCoordinates = [];\n const treksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n if (state.currentTreks) {\n for (const trek of state.currentTreks) {\n trekscurrentDepartureCoordinates.push(trek.departure_geom);\n treksFeatureCollection.features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: trek.departure_geom },\n properties: {\n id: trek.id,\n name: trek.name,\n practice: state.practices.find(practice => practice.id === trek.practice)?.pictogram,\n imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,\n },\n });\n }\n }\n\n if (!this.treksLayer) {\n if (trekscurrentDepartureCoordinates.length > 0 && !state.currentMapTreksBounds) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n if (state.currentMapTreksBounds) {\n this.bounds = state.currentMapTreksBounds;\n }\n }\n this.treksLayer = L.geoJSON(treksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,\n className: 'trek-marker',\n iconSize: 32,\n iconAnchor: [18, 0],\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('click', () => {\n const trekDeparturePopup = L.DomUtil.create('div');\n trekDeparturePopup.className = 'trek-departure-popup';\n if (geoJsonPoint.properties.imgSrc) {\n const trekImg = L.DomUtil.create('img');\n trekImg.src = geoJsonPoint.properties.imgSrc;\n trekDeparturePopup.appendChild(trekImg);\n }\n const trekName = L.DomUtil.create('div');\n trekName.innerHTML = geoJsonPoint.properties.name;\n trekName.className = 'trek-name';\n trekDeparturePopup.appendChild(trekName);\n\n const trekButton = L.DomUtil.create('button');\n trekButton.innerHTML = 'Afficher le détail';\n trekButton.className = 'trek-button';\n trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);\n trekDeparturePopup.appendChild(trekButton);\n\n layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false } as any).openPopup();\n });\n layer.on('mouseover', e => {\n this.hideTrekLine();\n this.showTrekLine(geoJsonPoint.properties.id);\n this.addSelectedCurrentTrek(geoJsonPoint.properties.id, e.latlng);\n });\n },\n });\n\n this.treksMarkerClusterGroup = L.markerClusterGroup({\n showCoverageOnHover: false,\n removeOutsideVisibleBounds: false,\n iconCreateFunction: cluster => {\n return L.divIcon({ html: '<div>' + cluster.getChildCount() + '</div>', className: 'treks-marker-cluster-group-icon', iconSize: 48, iconAnchor: [24, 24] } as any);\n },\n });\n\n this.treksMarkerClusterGroup.addLayer(this.treksLayer);\n this.map.addLayer(this.treksMarkerClusterGroup);\n } else {\n if (trekscurrentDepartureCoordinates.length > 0) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n this.map.fire('moveend');\n }\n this.treksLayer.clearLayers();\n this.treksLayer.addData(treksFeatureCollection);\n this.treksMarkerClusterGroup.clearLayers();\n this.treksMarkerClusterGroup.addLayer(this.treksLayer);\n }\n\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n\n this.map.on('moveend', this.handleTreksWithinBoundsBind);\n }\n\n removeTreks() {\n if (this.treksLayer) {\n state.currentMapTreksBounds = this.map.getBounds();\n this.map.removeLayer(this.treksMarkerClusterGroup);\n this.treksLayer = null;\n this.treksMarkerClusterGroup = null;\n this.map.off('moveend', this.handleTreksWithinBoundsBind);\n }\n }\n\n handleTreksWithinBounds() {\n if (\n (state.currentTreks && !state.currentMapTreksBounds) ||\n (state.currentTreks && state.currentMapTreksBounds && state.currentMapTreksBounds.toBBoxString() !== this.map.getBounds().toBBoxString())\n ) {\n state.treksWithinBounds = state.currentTreks.filter(trek => this.map.getBounds().contains(L.latLng(trek.departure_geom[1], trek.departure_geom[0])));\n }\n }\n\n addTrek() {\n this.trekPopupIsOpen = false;\n state.selectedTrekId = null;\n this.hideTrekLine();\n this.removeSelectedCurrentTrek();\n\n const currentTrekFeature: Feature = {\n type: 'Feature',\n geometry: state.currentTrek.geometry,\n properties: {},\n };\n\n this.currentTrekLayer = L.geoJSON(currentTrekFeature, {\n style: () => ({\n color: 'transparent',\n }),\n interactive: false,\n }).addTo(this.map);\n\n if (state.currentTrek.parking_location) {\n const currentParking: Feature = {\n type: 'Feature',\n properties: {},\n geometry: { type: 'Point', coordinates: state.currentTrek.parking_location },\n };\n this.currentParkingLayer = L.geoJSON(currentParking, {\n pointToLayer: (_geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: '<div>P</div>',\n className: 'parking-icon',\n iconSize: 48,\n iconAnchor: [0, 48],\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any),\n });\n }\n\n if (state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) {\n const currentSensitiveAreasFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const sensitiveArea of state.currentSensitiveAreas) {\n currentSensitiveAreasFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: sensitiveArea.name },\n geometry: sensitiveArea.geometry,\n });\n }\n\n this.currentSensitiveAreasLayer = L.geoJSON(currentSensitiveAreasFeatureCollection, {\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const sensitiveAreaTooltip = L.DomUtil.create('div');\n sensitiveAreaTooltip.className = 'sensitive-area-tooltip';\n const sensitiveAreaName = L.DomUtil.create('div');\n sensitiveAreaName.innerHTML = geoJsonPoint.properties.name;\n sensitiveAreaName.className = 'sensitive-area-name';\n sensitiveAreaTooltip.appendChild(sensitiveAreaName);\n layer.bindTooltip(sensitiveAreaTooltip).openTooltip();\n });\n },\n style: () => ({ color: this.colorSensitiveArea }),\n });\n }\n\n if (state.currentPois && state.currentPois.length > 0) {\n const currentPoisFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentPoi of state.currentPois) {\n currentPoisFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentPoi.name, type_pictogram: state.poiTypes.find(poiType => poiType.id === currentPoi.type)?.pictogram },\n geometry: currentPoi.geometry,\n });\n }\n\n this.currentPoisLayer = L.geoJSON(currentPoisFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'poi-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const poiTooltip = L.DomUtil.create('div');\n poiTooltip.className = 'poi-tooltip';\n const poiName = L.DomUtil.create('div');\n poiName.innerHTML = geoJsonPoint.properties.name;\n poiName.className = 'poi-name';\n poiTooltip.appendChild(poiName);\n layer.bindTooltip(poiTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentInformationDesks && state.currentInformationDesks.length > 0) {\n const currentInformationDesksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentInformationDesk of state.currentInformationDesks.filter(currentInformationDesks =>\n state.currentTrek.information_desks.includes(currentInformationDesks.id),\n )) {\n if (currentInformationDesk.latitude && currentInformationDesk.longitude) {\n currentInformationDesksFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentInformationDesk.name, type_pictogram: currentInformationDesk.type.pictogram },\n geometry: { type: 'Point', coordinates: [Number(currentInformationDesk.longitude), Number(currentInformationDesk.latitude)] },\n });\n }\n }\n\n this.currentInformationDesksLayer = L.geoJSON(currentInformationDesksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'information-desks-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const informationDesksTooltip = L.DomUtil.create('div');\n informationDesksTooltip.className = 'information-desks-tooltip';\n const informationDesksName = L.DomUtil.create('div');\n informationDesksName.innerHTML = geoJsonPoint.properties.name;\n informationDesksName.className = 'information-desks-name';\n informationDesksTooltip.appendChild(informationDesksName);\n layer.bindTooltip(informationDesksTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentTrek.points_reference) {\n const currentPointsReferenceFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n currentPointsReferenceFeatureCollection.features.push({\n type: 'Feature',\n properties: {},\n geometry: state.currentTrek.points_reference,\n });\n\n let index = 0;\n this.currentPointsReferenceLayer = L.geoJSON(currentPointsReferenceFeatureCollection, {\n pointToLayer: (_geoJsonPoint, latlng) => {\n index += 1;\n return L.marker(latlng, {\n icon: L.divIcon({\n html: index,\n className: 'point-reference-icon',\n iconSize: 24,\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any);\n },\n });\n }\n\n const elevationOptions = {\n srcFolder: 'https://unpkg.com/@raruto/leaflet-elevation/src/',\n elevationDiv: `#elevation`,\n theme: `custom-theme${!this.useGradient ? ' use-theme-color' : ''}`,\n detached: true,\n height: 250,\n wptIcons: true,\n wptLabels: true,\n collapsed: false,\n autohide: false,\n distanceMarkers: { distance: false, direction: true },\n hotline: this.useGradient,\n closeBtn: false,\n summary: false,\n time: false,\n timestamps: false,\n legend: false,\n downloadLink: false,\n autofitBounds: false,\n ruler: false,\n edgeScale: false,\n waypoints: false,\n almostOver: false,\n speed: false,\n slope: false,\n acceleration: false,\n reverseCoords: false,\n imperial: false,\n dragging: false,\n zooming: false,\n handlers: ['Altitude', 'Distance', 'Slope', 'LinearGradient'],\n linearGradient: {\n attr: 'z',\n path: 'altitude',\n range: { 0.0: '#008800', 0.5: '#ffff00', 1.0: '#ff0000' },\n min: 'elevation_min',\n max: 'elevation_max',\n },\n };\n this.elevationControl = (L.control as any).elevation({ ...elevationOptions }).addTo(this.map);\n const elevation = JSON.stringify({\n name: `${state.currentTrek.name}`,\n type: 'FeatureCollection',\n features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates: state.currentTrek.geometry.coordinates }, properties: null }],\n });\n (this.elevationControl as any).load(elevation);\n\n const overlays = {};\n if (this.currentPointsReferenceLayer) {\n overlays[translate[state.language].layers.pointsReference] = this.currentPointsReferenceLayer;\n }\n if (this.currentParkingLayer) {\n overlays[translate[state.language].layers.parking] = this.currentParkingLayer;\n }\n if (this.currentSensitiveAreasLayer) {\n overlays[translate[state.language].layers.sensitiveArea] = this.currentSensitiveAreasLayer;\n }\n if (this.currentInformationDesksLayer) {\n overlays[translate[state.language].layers.informationPlaces] = this.currentInformationDesksLayer;\n }\n if (this.currentPoisLayer) {\n overlays[translate[state.language].layers.pois] = this.currentPoisLayer;\n }\n\n if (this.layersControl) {\n Object.keys(overlays).forEach(key => {\n this.layersControl.addOverlay(overlays[key], key);\n });\n } else {\n this.layersControl = L.control.layers({}, overlays, { collapsed: true }).addTo(this.map);\n }\n\n this.handleLayersControlEvent();\n\n this.bounds = L.latLngBounds(state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n }\n\n addSelectedCurrentTrek(id, customCoordinates?) {\n const treksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n if (state.currentTreks) {\n const trek = state.currentTreks.find(trek => trek.id === id);\n treksFeatureCollection.features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : trek.departure_geom },\n properties: {\n id: trek.id,\n name: trek.name,\n practice: state.practices.find(practice => practice.id === trek.practice)?.pictogram,\n imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,\n },\n });\n }\n\n this.removeSelectedCurrentTrek();\n state.selectedTrekId = id;\n\n this.selectedCurrentTrekLayer = L.geoJSON(treksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n zIndexOffset: 4000000,\n icon: L.divIcon({\n html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,\n className: 'selected-trek-marker',\n iconSize: 64,\n iconAnchor: [36, 36],\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('click', () => {\n const trekDeparturePopup = L.DomUtil.create('div');\n trekDeparturePopup.className = 'trek-departure-popup';\n if (geoJsonPoint.properties.imgSrc) {\n const trekImg = L.DomUtil.create('img');\n trekImg.src = geoJsonPoint.properties.imgSrc;\n trekDeparturePopup.appendChild(trekImg);\n }\n const trekName = L.DomUtil.create('div');\n trekName.innerHTML = geoJsonPoint.properties.name;\n trekName.className = 'trek-name';\n trekDeparturePopup.appendChild(trekName);\n\n const trekButton = L.DomUtil.create('button');\n trekButton.innerHTML = 'Afficher le détail';\n trekButton.className = 'trek-button';\n trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);\n trekDeparturePopup.appendChild(trekButton);\n\n layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false } as any).openPopup();\n });\n layer.on('mouseout', () => {\n if (!this.trekPopupIsOpen) {\n state.selectedTrekId = null;\n this.hideTrekLine();\n this.removeSelectedCurrentTrek();\n }\n });\n layer.on('popupopen', () => {\n this.trekPopupIsOpen = Boolean(state.selectedTrekId);\n });\n layer.on('popupclose', () => {\n if (state.selectedTrekId) {\n this.trekPopupIsOpen = false;\n state.selectedTrekId = null;\n this.hideTrekLine();\n this.removeSelectedCurrentTrek();\n }\n });\n },\n }).addTo(this.map);\n }\n\n removeSelectedCurrentTrek() {\n state.selectedTrekId = null;\n this.selectedCurrentTrekLayer && this.map.removeLayer(this.selectedCurrentTrekLayer);\n this.selectedCurrentTrekLayer = null;\n }\n\n handleLayersControlEvent() {\n const userLayersState: HTMLInputElement[] = (this.layersControl as any)._layerControlInputs;\n userLayersState.forEach((userLayerState: any) => {\n if ((this.layersControl as any)._layers.find(layer => layer.layer._leaflet_id === userLayerState.layerId).overlay) {\n userLayerState.onchange = event => {\n this.userLayersState[userLayerState.layerId] = (event.target as any).checked;\n };\n }\n });\n }\n\n removeTrek() {\n if (this.layersControl) {\n if (!(this.layersControl as any)._layers.some(layer => !layer.overlay)) {\n this.map.removeControl(this.layersControl);\n this.layersControl = null;\n } else {\n (this.layersControl as any)._layers\n .filter(layer => layer.overlay)\n .forEach(layer => {\n this.layersControl.removeLayer(layer.layer);\n });\n }\n }\n\n if (this.elevationControl) {\n (this.elevationControl as any).clear();\n this.map.removeControl(this.elevationControl);\n this.elevationControl = null;\n }\n\n if (this.currentTrekLayer) {\n this.map.removeLayer(this.currentTrekLayer);\n this.currentTrekLayer = null;\n }\n\n if (this.currentParkingLayer) {\n this.map.removeLayer(this.currentParkingLayer);\n this.currentParkingLayer = null;\n }\n\n if (this.currentSensitiveAreasLayer) {\n this.map.removeLayer(this.currentSensitiveAreasLayer);\n this.currentSensitiveAreasLayer = null;\n }\n\n if (this.currentPoisLayer) {\n this.map.removeLayer(this.currentPoisLayer);\n this.currentPoisLayer = null;\n }\n\n if (this.currentInformationDesksLayer) {\n this.map.removeLayer(this.currentInformationDesksLayer);\n this.currentInformationDesksLayer = null;\n }\n\n if (this.currentPointsReferenceLayer) {\n this.map.removeLayer(this.currentPointsReferenceLayer);\n this.currentPointsReferenceLayer = null;\n }\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n showTrekLine(id) {\n getTrekGeometry(id).then(response => {\n const currentTrekFeature: Feature = {\n type: 'Feature',\n geometry: response.geometry,\n properties: {},\n };\n\n this.currentTrekLayer = L.geoJSON(currentTrekFeature, {\n style: () => ({\n color: this.colorTrekLine,\n }),\n interactive: false,\n }).addTo(this.map);\n });\n }\n\n hideTrekLine() {\n if (this.currentTrekLayer) {\n this.map.removeLayer(this.currentTrekLayer);\n this.currentTrekLayer = null;\n }\n }\n\n render() {\n const layersImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/layers.svg`);\n const contractImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/contract.svg`);\n return (\n <Host\n style={{\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-background': this.colorBackground,\n '--color-poi-icon': this.colorPoiIcon,\n '--color-trek-line': this.colorTrekLine,\n '--layers-image-src': `url(${layersImageSrc})`,\n '--contract-image-src': `url(${contractImageSrc})`,\n '--map-bottom-space-height': this.isLargeView ? '0px' : '70px',\n }}\n >\n <div id=\"map\" style={{}} class={state.currentTrek ? 'trek-map' : 'treks-map'} ref={el => (this.mapRef = el)}></div>\n {state.currentTrek && (\n <div>\n <div id=\"elevation\" ref={el => (this.elevationRef = el)}></div>\n <div class=\"map-bottom-space\"></div>\n </div>\n )}\n\n {!this.mapIsReady && (\n <div class=\"map-loader-container\">\n <span class=\"loader\"></span>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
Binary file
|