Browse Source

retire le marker centroïde

master
vincent 3 months 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;
});
/*
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);


Loading…
Cancel
Save