Issue
I do have an Overlay that's used on several kinds of MapViews. Now I need to invalidate the MapView from within the Overlay in one single situation.
I couldn't find a way to get the MapView this Overlay is drawn on. Is there a way to find the MapView from within the Overlay?
Yes, I know, I can put the MapView in an additional constructor of the Overlay, but first I want to try if this is possible without an additional constructor.
Thanks in advance.
Solution
Either try putting the Overlay inside the MapView to make it an inner class, but in that case you probably wouldn't be able to use it elsewhere, OR try good old pattern observer perhaps?
Answered By - Michal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.