diff --git a/assets/controllers/map_controller.js b/assets/controllers/map_controller.js index 4d53d9b..59c7238 100644 --- a/assets/controllers/map_controller.js +++ b/assets/controllers/map_controller.js @@ -94,6 +94,7 @@ export default class extends Controller { window.location.href = event.layer.feature.properties.url; }); + /* L.marker(polygon.getBounds().getCenter(), { icon: icons[feature0.color], title: feature0.name, @@ -101,6 +102,7 @@ export default class extends Controller { }).addTo(layer1).on('click', function (event) { window.location.href = event.target.options.clickUrl; }); + */ }); layer1.addTo(layer);