@@ -170,7 +170,7 @@ import { getCurrentUser } from '@nextcloud/auth'
170170import axios from ' @nextcloud/axios'
171171import { showError , showSuccess } from ' @nextcloud/dialogs'
172172
173- import { LocateControl } from " leaflet.locatecontrol"
173+ import { LocateControl } from ' leaflet.locatecontrol'
174174import ' leaflet.locatecontrol/dist/L.Control.Locate.min.css'
175175import L from ' leaflet'
176176import ' mapbox-gl/dist/mapbox-gl'
@@ -210,22 +210,22 @@ import PhotoSuggestionsLayer from './map/PhotoSuggestionsLayer.vue'
210210
211211// exclude dynamic imports from webpack-processing
212212L .Control .Elevation .include ({
213- import : function (src , condition ) {
213+ import (src , condition ) {
214214 if (Array .isArray (src)) {
215- return Promise .all (src .map (m => this .import (m)));
215+ return Promise .all (src .map (m => this .import (m)))
216216 }
217- switch (src) {
218- case this .__D3 : condition = typeof d3 !== ' object' ; break ;
219- case this .__TOGEOJSON : condition = typeof toGeoJSON !== ' object' ; break ;
220- case this .__LGEOMUTIL : condition = typeof L .GeometryUtil !== ' object' ; break ;
221- case this .__LALMOSTOVER : condition = typeof L .Handler .AlmostOver !== ' function' ; break ;
222- case this .__LDISTANCEM : condition = typeof L .DistanceMarkers !== ' function' ; break ;
223- case this .__LEDGESCALE : condition = typeof L .Control .EdgeScale !== ' function' ; break ;
224- case this .__LHOTLINE : condition = typeof L .Hotline !== ' function' ; break ;
217+ switch (src) {
218+ case this .__D3 : condition = typeof d3 !== ' object' ; break
219+ case this .__TOGEOJSON : condition = typeof toGeoJSON !== ' object' ; break
220+ case this .__LGEOMUTIL : condition = typeof L .GeometryUtil !== ' object' ; break
221+ case this .__LALMOSTOVER : condition = typeof L .Handler .AlmostOver !== ' function' ; break
222+ case this .__LDISTANCEM : condition = typeof L .DistanceMarkers !== ' function' ; break
223+ case this .__LEDGESCALE : condition = typeof L .Control .EdgeScale !== ' function' ; break
224+ case this .__LHOTLINE : condition = typeof L .Hotline !== ' function' ; break
225225 }
226- let url = (new URL (src, (src .startsWith (' ../' ) || src .startsWith (' ./' )) ? this .options .srcFolder : undefined )).toString ();
227- return condition !== false ? import (/* webpackIgnore: true */ url) : Promise .resolve ();
228- }
226+ const url = (new URL (src, (src .startsWith (' ../' ) || src .startsWith (' ./' )) ? this .options .srcFolder : undefined )).toString ()
227+ return condition !== false ? import (/* webpackIgnore: true */ url) : Promise .resolve ()
228+ },
229229})
230230
231231export default {
0 commit comments