mapsforge / vtm

OpenGL vector map library - running on Android, iOS, Desktop and browser.
GNU Lesser General Public License v3.0
272 stars 89 forks source link

DO NOT MERGE Example: thick semitransparent crossing polyline in example VectorLayerActivity #1081

Closed eddiemuc closed 11 months ago

eddiemuc commented 11 months ago

Example: thick semitransparent crossing polyline in example VectorLayerActivity

This PR is NOT intended for merge! It gives an example for a problem we're facing in c:geo.

PR adds a polyline in the region of Hamburg/Germany to the android example VectorLayerActivity with following properties:

This produces a polyline with "too solid" look on regions with sharp edges. Also, the polyline is very big even in the overview.

Question is: what are we doing wrong, and how do we have to adapt settings (maybe style?) to get rid of the overlaps?

Screenshot overview (the big blue dot is the polyine in hamburg): image

Screenshot zoomed closer to polyline: image

Screenshot very close to polyline: image

devemux86 commented 11 months ago

@eddiemuc thanks for the example. There are 2 issues:

Both seem like OpenGL implementation issues. There is no quick answer, we should probably check LineBucket for improvements.

eddiemuc commented 11 months ago

I took a quick look into LineBucket. My oh my, that's some code you don't want to mess with.... Nothing to touch lightly.

@devemux86 Should I open an issue for this topic somewhere?

devemux86 commented 11 months ago

@eddiemuc please create an issue so we can check it.

Indeed it is more complicated code with OpenGL calls. :slightly_smiling_face:

devemux86 commented 11 months ago

Closing as we examine the case in https://github.com/mapsforge/vtm/issues/1082.