xcxm0304 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

PathOverlay disappearing while scrolling #529

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I do have a path where this problem is reproducable: 
http://pastebin.com/0yZwsaEN

The paste is the #toString() of each GeoPoint in the path. If you zoom in to 
level 18 and scroll among the path (try to move left/right, too), you can 
hopefully reproduce the problem and will see the path disappear/reappear.

What is the expected output? What do you see instead?

When drawing a path with a PathOverlay, sometimes paths disappear while 
scrolling (so far I've seen it mostly on a high zoom-level like 18, but not 
only). They reappear when the user scrolls out of a certain rectangular area, 
and disappear again when the user scrolls back into the same area. I need the 
path to stay visible in all areas and zoom-levels.

What version of the product are you using? On what operating system?

Latest osmdroid 4.0 lib, Nexus 4, Android 4.4 (same behaviour on a different 
Nexus 4 with Android 4.3).

Please provide any additional information below.

I am subclassing PathOverlay, because I needed a Getter for the parcelable 
GeoPoint-Arraylist and the color. However, I am calling super where needed, 
e.g. in #addPoint, so this should not matter. Let me know if you need any more 
info.

Original issue reported on code.google.com by carsten....@bitz.it on 20 Feb 2014 at 3:09

GoogleCodeExporter commented 9 years ago
I believe what you are describing is detailed in 392.

Original comment by kurtzm...@gmail.com on 20 Feb 2014 at 3:14

GoogleCodeExporter commented 9 years ago
I'm not sure if the problem I was describing is caused be the same issue 
described in 392. I found the reason (PathEffect): 
https://code.google.com/p/osmdroid/issues/detail?id=392#c18

Not familiar with the drawing, So I don't know if these issues are really 
connected.

Original comment by carsten....@bitz.it on 21 Feb 2014 at 10:07