Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Make InfoWindowAdapter dynamically updateable #5353

Closed
ivovandongen opened this issue Jun 14, 2016 · 2 comments
Closed

Make InfoWindowAdapter dynamically updateable #5353

ivovandongen opened this issue Jun 14, 2016 · 2 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@ivovandongen
Copy link
Contributor

Analog to #5237.

Add the possibility to invalidate the InfoWindowAdapter so that the content is refreshed on the map. As the InfoWindowAdapter is an interface and we don't want to break the api, the easiest way to provide this would probably be add an abstract class extending InfoWindowAdapter with an invalidate() method that may be called so that the infowindow contents is refreshed.

@ivovandongen ivovandongen added the Android Mapbox Maps SDK for Android label Jun 14, 2016
@ivovandongen
Copy link
Contributor Author

Added an example on how to dynamically update the InfoWindow contents on some trigger (map clicks in this example).

Did have to change up the placement update code on InfoWindow a bit. All-in-all, I think this needs a bit of an overhaul as there are already too many exceptions in there and it's not really meant for updating (only initial placement).

@tobrun
Copy link
Member

tobrun commented Jun 17, 2016

This was merged with 4.1.0 release branch in #5375, adding milestone and closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants