Lot's of small improvements

This commit is contained in:
Pieter Vander Vennet 2020-06-29 03:12:44 +02:00
parent 9bd37d9cde
commit 8bca006787
29 changed files with 375 additions and 173 deletions

View file

@ -183,9 +183,10 @@ export class FilteredLayer {
eventSource.addCallback(function () {
self.updateStyle();
});
layer.on("click", function(){
layer.on("click", function(e){
console.log("Selected ",feature)
self._selectedElement.setData(feature.properties);
L.DomEvent.stop(e); // Marks the event as consumed
});
}
});