Answer the question
In order to leave comments, you need to log in
Why is the layer of type MultiLineString not fully displayed?
When the component is loaded, I run the function:
async mountPanoramasTiles() {
await this.fetchPanoramTracks();
this.drawRoadsLayer(this.panoramasTracksLayer);
}
drawRoadsLayer(geoJSON) {
const { map, point } = this.props;
const geoVector = new ol.source.Vector({
features: new ol.format.GeoJSON().readFeatures(geoJSON)
});
const tilesStyle = new ol.style.Style({
stroke: new ol.style.Stroke({
color: "blue",
width: 1
})
});
this.panoramasTracksLayer = new ol.layer.Vector({
source: geoVector,
style: tilesStyle
});
map.addLayer(this.panoramasTracksLayer);
}
{"type":"Feature","id":"default_pano_shape.1","geometry":{"type":"MultiLineString","coordinates":[]},"geometry_name":"geom","properties":{"objectid":1,"id":0,"shape_leng":127.622459436989288}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question