aboutsummaryrefslogtreecommitdiff
path: root/app/javascript/controllers/map_controller.js
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-11-13 00:07:11 +0100
committerhellekin <hellekin@cepheide.org>2020-11-13 00:10:20 +0100
commit46ee25fabfc3d2a4493004535774ddea1ad01c91 (patch)
tree23ea237ec9c81311fb31cccf0eb7cc8e1d9ac9bc /app/javascript/controllers/map_controller.js
parent7297617845dc1f57fd4b921c7a413d795ee8cb5f (diff)
downloadincommon-map-46ee25fabfc3d2a4493004535774ddea1ad01c91.tar.gz
Add leaflet plugin to fix webpack compatibility
Diffstat (limited to 'app/javascript/controllers/map_controller.js')
-rw-r--r--app/javascript/controllers/map_controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/controllers/map_controller.js b/app/javascript/controllers/map_controller.js
index 5363e5e..2a2b310 100644
--- a/app/javascript/controllers/map_controller.js
+++ b/app/javascript/controllers/map_controller.js
@@ -7,14 +7,15 @@
//
import { Controller } from "stimulus"
-import L from "leaflet"
import "leaflet/dist/leaflet.css"
+import L from "leaflet"
+
export default class extends Controller {
static targets = [ "container" ]
initialize() {
- console.log("Map controller initialized.")
+
}
connect() {