diff options
author | hellekin <hellekin@cepheide.org> | 2020-11-13 00:07:11 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-11-13 00:10:20 +0100 |
commit | 46ee25fabfc3d2a4493004535774ddea1ad01c91 (patch) | |
tree | 23ea237ec9c81311fb31cccf0eb7cc8e1d9ac9bc /app | |
parent | 7297617845dc1f57fd4b921c7a413d795ee8cb5f (diff) | |
download | incommon-map-46ee25fabfc3d2a4493004535774ddea1ad01c91.tar.gz |
Add leaflet plugin to fix webpack compatibility
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/controllers/map_controller.js | 5 |
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() { |