I have following Polyline: https://pastebin.com/ktcNGRWg
With following code:
this.map = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM({ crossOrigin: null })
}),
],
view: new View({
center: olProj.fromLonLat([7.0785, 51.4614]),
zoom: 2
})
});
const polyline = data.polyline;
const route = new Polyline({
factor: 1e5,
}).readGeometry(polyline, {
dataProjection: 'EPSG:4326',
featureProjection: 'EPSG:3857',
});
const routeFeature = new Feature({
type: 'route',
geometry: route,
});
const styles = {
'route': new Style({
stroke: new Stroke({
width: 2,
color: [5, 22, 77, 1],
}),
}),
'icon': new Style({
image: new Icon({
anchor: [0.5, 1],
src: 'data/icon.png',
}),
}),
};
const vectorLayer = new VectorLayer({
source: new VectorSource({
wrapX: true,
features: [routeFeature],
}),
style: function (feature) {
return styles[feature.get('type')];
},
});
this.map.addLayer(vectorLayer);
I will get this map:
but the export from FR24 is displayed original this:
i tried things with wrapx like its mentioned on other posts. how is it possible to get a similar result like FR24?

