-
Notifications
You must be signed in to change notification settings - Fork 1.3k
getMapAsync for Android like in Google maps #2042
Comments
I created a pull request for this: |
The problem i described in #2018 is back after i load the mapview this way |
I don't really understand what this does. It seems you are only changing the way the test app works? /cc @bleege |
You probably would like to have MapView in a Fragment to reuse map functionality (like google do) and to add it programmatically you need to retrieve the MapView async from the MapFragment when it's added to the view or else it's null if you try to retrieve it just after you've created the MapFragment. But.. This causes another problem, i describe in #2018 that when i tried to switch from the MapActivity to some other Activity (after moved the maped) and back the app crashes.. |
@tobrun Interesting! Perhaps we should put this on 2.2.0 milestone as part of the refactor. |
This will be implemented with #3145 |
This has landed with #3145. Closing |
Would it be an idea to load the mapview async as in google maps:
In this way you could make the mapFragment static so you don't have to reinstanciate it each time you create the activity containing the map.
I have made an implementation of this.
The text was updated successfully, but these errors were encountered: