Support pointToLayer and onEachFeature customization.

This commit is contained in:
David Molineus committed 2015-01-09 16:10:17 +01:00
1 parent 717b02e615
commit 150e3706ed
5 files changed
+54 -4

No files matched your search

+6
View File
@@ -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)
});
},
/**