Browse Source

retire le marker centroïde

master
vincent 3 weeks ago
parent
commit
4c9cbe83c3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      assets/controllers/map_controller.js

+ 2
- 0
assets/controllers/map_controller.js View File

@ -94,6 +94,7 @@ export default class extends Controller {
window.location.href = event.layer.feature.properties.url; window.location.href = event.layer.feature.properties.url;
}); });
/*
L.marker(polygon.getBounds().getCenter(), { L.marker(polygon.getBounds().getCenter(), {
icon: icons[feature0.color], icon: icons[feature0.color],
title: feature0.name, title: feature0.name,
@ -101,6 +102,7 @@ export default class extends Controller {
}).addTo(layer1).on('click', function (event) { }).addTo(layer1).on('click', function (event) {
window.location.href = event.target.options.clickUrl; window.location.href = event.target.options.clickUrl;
}); });
*/
}); });
layer1.addTo(layer); layer1.addTo(layer);


Loading…
Cancel
Save