Support pointToLayer and onEachFeature customization.

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

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)
});
},
/**