mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 11:04:08 +01:00
Add undo relations deleting callback.
This commit is contained in:
@@ -37,11 +37,13 @@ L.Contao = L.Class.extend({
|
||||
});
|
||||
});
|
||||
|
||||
// Set default pointToLayer and onEachFeature handler.
|
||||
L.GeoJSON.AJAX.prototype.options = L.Util.extend({}, L.GeoJSON.AJAX.prototype.options, {
|
||||
pointToLayer: this.pointToLayer.bind(this),
|
||||
onEachFeature: this.onEachFeature.bind(this)
|
||||
});
|
||||
if (L.GeoJSON.AJAX) {
|
||||
// Set default pointToLayer and onEachFeature handler.
|
||||
L.GeoJSON.AJAX.prototype.options = {
|
||||
pointToLayer: this.pointToLayer.bind(this),
|
||||
onEachFeature: this.onEachFeature.bind(this)
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user