missing folder infos
jayantpaliwal opened this issue · comments
Jayant Paliwal commented
While converting xml to geoJson using @tmcw/togeojson@4.1.0/dist/togeojson.umd.js is missing the folder infos.
_parseKML: function(data, props) {
var xml = _.toXML(data, props);
var geojson = _.toGeoJSON(xml, props);
var layer = (this.options.geometryToLayer || this._geometryToLayer).call(this, geojson, xml);
this.addLayer(layer);
this.fire('load', { layer: layer, name: geojson.properties.name });
},
it merged all the folder layers
I need to present the layers like google earth.
Folders-> Sub layers of folders
Raruto commented
Hi @jayantpaliwal,
Javascript dependencies are lazy loaded only when not found on the page,
ie. a previous <script src="@tmcw/togeojson@4.1.0/dist/togeojson.umd.js"></script>
:
Lines 140 to 152 in ed43fe9
The version provided by this plugin is not mandatory, otherwise please propose your own PR.
👋 Raruto