0

I'm using the Gmap.NET control to draw routes on maps which works basically fine, but on certain zoom levels it creates those "spikes" on some tour stations. Especially when the way to the station is the same as when leaving it again.

Example with a spike (station 3):

spike on station 3

Correct plotting of the route when zooming one level further down:

no spike on this zoom level

I hope the problem is clear.

Any ideas what this is and how to handle it?

Edit: This is one of the routes creating the issue. stations:

0 = 53.42853, 9.94964
1 = 53.4234, 10.0205 
2 = 53.36294, 9.98961
3 = 53.22015, 10.17786
4 = 53.23748, 10.15987
5 = 53.42853, 9.94964

And the whole routing: https://nopaste.xyz/?272dc860d24033de#GqwkHCVP88IB/SdXzJFzTCSJqjfdM7cX20/qoyCOVbY=

Thank you, Michel.

1 Answers1

1

I tried to load your route coordinates and test them on the map and i didn't see the problem exactly.

ALL 809 Route points loadedenter image description here

While searching, i found an answer for your prolem in this link How can I get rid of these 'spike' visual artifacts when drawing with WPF?, the question was for the WPF version but you will get the idea.

in short, the problem was in the Route Line Joins Type (Miter, Bevel, Round) like in this image: enter image description here

Ahmed GIS
  • 513
  • 4
  • 9
  • Sorry for the late response, I lost track of the issue. But this is the correct answer. Very helpful, thanks a ton. – DrSeuthberg Oct 12 '18 at 14:45