Не беру стили с KML
This commit is contained in:
parent
e79e5f5db3
commit
09d9626010
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user