What method to call to update my overlay view on google map?

I defined the overlay (OverlayView implementation), and after defining my overlay, I need to update some content in the overlay. But this does not take effect unless I move the map.

Which method to call so that my overlay updates do not move the map? Is there an update / rendering way to update the view?

+4
source share
2 answers

I solved the problem with setMap (null) to remove the overlay, and then redraw the full overlay.

0
source

You can call the draw() function in OverlayView, see reference for more information.

+6
source

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


All Articles