VectorLayer elements not redrawn on panning the map #998
-
I'm struggling with a strange effect on a VTM
Panning the map is done programmatically by calling the following method:
Even calling How can this happen? / What else can I check for? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 13 replies
-
Can you share a sample Activity to reproduce the report?
👍
Does it work when scroll the map with hand? What happens if call |
Beta Was this translation helpful? Give feedback.
-
@moving-bits thanks for using VTM in c:geo, so it has more users and we can improve it better! I'm trying to remember if seeing such a case. Testing this sample, we can see that the layers disappear when they start to go off the screen. |
Beta Was this translation helpful? Give feedback.
-
It is necessary for performance. I do not remember if Mapsforge has a similar mechanism.
Sorry that I do not have quick answer... The only thing I can remember from Cruiser: |
Beta Was this translation helpful? Give feedback.
-
If you work with threads, perhaps some calls to VTM should be done with Map.post(Runnable)? On Android it uses the View.post(Runnable): "The runnable will be run on the user interface thread." |
Beta Was this translation helpful? Give feedback.
-
All docs are linked in the main page and exist in the docs folder. I am afraid for more details all of us usually need to look the code. 🙂 |
Beta Was this translation helpful? Give feedback.
cgeo/cgeo#13806 (comment)