ol-ext icon indicating copy to clipboard operation
ol-ext copied to clipboard

ol.style.FlowLine works Not as expected when zoomed the map

Open PongChen opened this issue 3 years ago • 3 comments

http://viglino.github.io/ol-ext/examples/style/map.style.gpxline.html

for example this ,i can see the line is composed of many little segments actually,with the basemap as the reference,when i zoomed the map, the position of Connection point of these segments changed,so,how dose it display elevation color accurately。 looking forward to your reply,thanks

PongChen avatar Sep 22 '21 02:09 PongChen

image image image zoom Increasing color display different

PongChen avatar Sep 22 '21 06:09 PongChen

The length of the segments composing the line depends on the resolution of the drawing (the more you zoom the smaller the segments). The color depends on the altitude of the center of the line segments, thus when you zoom the color may change and be more accurate...

In addition the color function doesn't take into account the real coordinate of the segment but the elevation of the center of the line segments (that my differ from the current point and swap due to threshold effect). This function could be enhance to compute the real height along the line...

Viglino avatar Sep 22 '21 07:09 Viglino

other question for help

the position where every two segments connection, at the beginning and endingof the segement will be coverd ,can it be avoided?

image

ol-ext: GPX flow style

ol-ext: GPX flow line style

This example show how to use a ol.style.FlowLine to display elevation color along a GPX track.
You have to set the visible option to false to calculate the values on the whole line and not only on the visible part of it.

Look at this example for more information.

PongChen avatar Sep 22 '21 07:09 PongChen