Не беру стили с KML

This commit is contained in:
zakhy 2025-02-21 09:09:31 +07:00
parent e79e5f5db3
commit 09d9626010

View File

@ -351,8 +351,8 @@
map.removeLayer(vectorLayer);
}
const vectorSource = new ol.source.Vector({
features: new ol.format.KML().readFeatures(kml, {
featureProjection: 'EPSG:3857'
features: new ol.format.KML({extractStyles: false}).readFeatures(kml, {
featureProjection: 'EPSG:3857',
})
});
vectorLayer = new ol.layer.Vector({