javascript - OL3: writing 'extended data' to KML -
unfortunately, during ol3's .writefeatures(), feature properties not written 'extended data' of kml. following:
var outformat = new ol.format.kml(); var file = outformat.writefeatures(features);
creates file ready blob/export/whatever fine, feature name , other properties missing resulting kml file!!!
in other words, writing features source.vector (or else) kml format seems preserve feature id, other properties/attributions lost.
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd"><placemark id="27"><point><coordinates>-111.0580444335901,45.33284041773058</coordinates></point></placemark></kml>
is possible write properties extended data of kml using ol3, in lieu of building own kml file scratch?
...a reverse of question/answer provided here, doesn't provide answer...
no not supported, pull requests welcome of course add this. if cannot write code yourself, , have budget, can reach out companies support openlayers.
Comments
Post a Comment