ol-ext
ol-ext copied to clipboard
ol.style.FlowLine works Not as expected when zoomed the map
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
zoom Increasing
color display different
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...
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?
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.