mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 02:54:16 +01:00
Keep custom callbacks.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -27,10 +27,14 @@ L.OverPassLayer = L.FeatureGroup.extend({
|
||||
* @param options
|
||||
*/
|
||||
initialize: function (options) {
|
||||
L.Util.setOptions(this, options);
|
||||
if (!options.pointToLayer) {
|
||||
options.pointToLayer = this.pointToLayer;
|
||||
}
|
||||
if (!options.onEachFeature) {
|
||||
options.onEachFeature = this.onEachFeature;
|
||||
}
|
||||
|
||||
this.options.pointToLayer = this.pointToLayer;
|
||||
this.options.onEachFeature = this.onEachFeature;
|
||||
L.Util.setOptions(this, options);
|
||||
this.options.dynamicLoad = this.options.query.match(/BBOX/g) ? true : false;
|
||||
|
||||
this._layer = L.geoJson();
|
||||
|
||||
Reference in New Issue
Block a user