forked from Snck3rs/contao-leaflet-maps
Support pointToLayer and onEachFeature customization.
This commit is contained in:
@@ -36,6 +36,12 @@ 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)
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user