File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ import { getCurrentUser } from '@nextcloud/auth'
170170import axios from ' @nextcloud/axios'
171171import { showError , showSuccess } from ' @nextcloud/dialogs'
172172
173+ import { LocateControl } from " leaflet.locatecontrol"
174+ import ' leaflet.locatecontrol/dist/L.Control.Locate.min.css'
173175import L from ' leaflet'
174176import ' mapbox-gl/dist/mapbox-gl'
175177import ' mapbox-gl/dist/mapbox-gl.css'
@@ -186,8 +188,7 @@ import 'leaflet-easybutton/src/easy-button'
186188import ' leaflet-easybutton/src/easy-button.css'
187189import ' leaflet-contextmenu/dist/leaflet.contextmenu.min'
188190import ' leaflet-contextmenu/dist/leaflet.contextmenu.min.css'
189- import ' leaflet.locatecontrol/dist/L.Control.Locate.min'
190- import ' leaflet.locatecontrol/dist/L.Control.Locate.min.css'
191+
191192import ' d3/dist/d3.min'
192193import GeoJSON from ' geojson'
193194import ' @raruto/leaflet-elevation/dist/leaflet-elevation'
@@ -612,7 +613,7 @@ export default {
612613 },
613614 initLocControl (map ) {
614615 // location control
615- const locControl = L . control . locate ({
616+ const locControl = new LocateControl ({
616617 position: ' bottomright' ,
617618 drawCircle: true ,
618619 drawMarker: true ,
You can’t perform that action at this time.
0 commit comments