Support pointToLayer and onEachFeature customization.
This commit is contained in:
1 parent
717b02e615
commit
150e3706ed
5 files changed
+54
-4
No files matched your search
@@ -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