From 45b1691f3e3fcfed7f035e02d5e39dcf3f9a49a6 Mon Sep 17 00:00:00 2001 From: Marcus Winkler Date: Mon, 27 Jan 2014 13:50:05 +0100 Subject: [PATCH] fixed broken kml support --- external/leaflet.filelayer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/leaflet.filelayer.js b/external/leaflet.filelayer.js index bea3ec2a..1e9d23a0 100755 --- a/external/leaflet.filelayer.js +++ b/external/leaflet.filelayer.js @@ -44,11 +44,11 @@ var FileLoader = L.Class.extend({ if (typeof content == 'string') { content = JSON.parse(content); } - return L.geoJson(content, { + return L.geoJson(content, L.Util.extend({}, this.options.layerOptions, { style: function (feature) { return feature.properties && feature.properties.style; } - }).addTo(this._map); + })).addTo(this._map); }, _convertToGeoJSON: function (content, format) { @@ -169,4 +169,4 @@ L.Control.FileLayerLoad = L.Control.extend({ L.Control.fileLayerLoad = function (options) { return new L.Control.FileLayerLoad(options); -}; \ No newline at end of file +};