This commit is contained in:
Jon Atkins 2014-01-28 02:08:26 +00:00
commit 9cd526771c

View File

@ -44,11 +44,11 @@ var FileLoader = L.Class.extend({
if (typeof content == 'string') { if (typeof content == 'string') {
content = JSON.parse(content); content = JSON.parse(content);
} }
return L.geoJson(content, { return L.geoJson(content, L.Util.extend({}, this.options.layerOptions, {
style: function (feature) { style: function (feature) {
return feature.properties && feature.properties.style; return feature.properties && feature.properties.style;
} }
}).addTo(this._map); })).addTo(this._map);
}, },
_convertToGeoJSON: function (content, format) { _convertToGeoJSON: function (content, format) {