My overlay is not showing until mapView is clicked in android

I added the overlay element to my review, but it does not appear until I click on the map. I tried using mapView.performlick () but still not updating until I click mapView myself ... How do I do this?

+6
source share
2 answers

I think a magic sauce that you might miss is:

mapView.invalidate(); 
+7
source

I need more information, but if you are using ItemizedOverlay , be sure to call populate() after adding any elements to it.

0
source

Source: https://habr.com/ru/post/893434/


All Articles