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

[android] - delay invalidating marker views - #7075

Merged
tobrun merged 1 commit into
release-android-v4.2.0from
7072-delay-get-markers-in-bounds
Nov 21, 2016
Merged

tobrun merged 1 commit into
release-android-v4.2.0from
7072-delay-get-markers-in-bounds

Conversation

@tobrun

@tobrun tobrun commented Nov 15, 2016

Copy link
Copy Markdown
Member

Closes #7072

Review @cammace.

@tobrun tobrun added Android Mapbox Maps SDK for Android ✓ ready for review labels Nov 15, 2016
@tobrun tobrun added this to the android-v4.2.0 milestone Nov 15, 2016
@tobrun tobrun self-assigned this Nov 15, 2016
@mention-bot

Copy link
Copy Markdown

@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cammace, @bleege and @ivovandongen to be potential reviewers.

marker.setId(id);
annotations.put(id, marker);
markerViewManager.invalidateViewMarkersInVisibleRegion();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobrun Instead of posting with a delay, which will probably work in most situations, but doesn't give any guarantees. How about using an OnMapChangedListener for the callback that listens for the appropriate signal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, at time of patching I wasn't aware that this was expected behaviour as documented in #7072. I'm going to try invoking a render / waiting for a render to finish to solve this.

@tobrun

tobrun commented Nov 18, 2016

Copy link
Copy Markdown
Member Author

@ivovandongen I implemented your suggestion, care to rereview?

@tobrun
tobrun force-pushed the 7072-delay-get-markers-in-bounds branch from df05641 to fdef16f Compare November 21, 2016 08:06
@tobrun
tobrun merged commit 89ddb45 into release-android-v4.2.0 Nov 21, 2016
@tobrun
tobrun deleted the 7072-delay-get-markers-in-bounds branch November 21, 2016 12:15
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

Successfully merging this pull request may close these issues.

4 participants