From: Tom Hughes Date: Wed, 30 Oct 2024 18:41:43 +0000 (+0000) Subject: Adjust imports for leaflet.locatecontrol X-Git-Tag: live~62 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9b9e857b726d4a45af5e1b760ac1639cd31f0280?ds=inline Adjust imports for leaflet.locatecontrol --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 4f3c414f5..2b29992e9 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -1,7 +1,7 @@ //= require_self //= require leaflet.sidebar //= require leaflet.sidebar-pane -//= require leaflet.locatecontrol/src/L.Control.Locate +//= require leaflet.locatecontrol/dist/L.Control.Locate.umd //= require leaflet.locate //= require leaflet.layers //= require leaflet.key diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 681ec3ace..b94db8b55 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -1,4 +1,4 @@ -//= require leaflet.locatecontrol/src/L.Control.Locate +//= require leaflet.locatecontrol/dist/L.Control.Locate.umd (function () { $(document).on("change", "#user_all", function () {