mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 11:33:46 +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
|
* @param options
|
||||||
*/
|
*/
|
||||||
initialize: function (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;
|
L.Util.setOptions(this, options);
|
||||||
this.options.onEachFeature = this.onEachFeature;
|
|
||||||
this.options.dynamicLoad = this.options.query.match(/BBOX/g) ? true : false;
|
this.options.dynamicLoad = this.options.query.match(/BBOX/g) ? true : false;
|
||||||
|
|
||||||
this._layer = L.geoJson();
|
this._layer = L.geoJson();
|
||||||
|
|||||||
Reference in New Issue
Block a user