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

Exclude misses from nearby annotations #3898

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Feb 11, 2016

After filtering out elements of a vector using std::remove_if(), it’s apparently necessary to resize the vector. Otherwise, removing only has the effect of shifting the non-matching items to the end of the vector. This change reduces the annotation tap target back to almost what it was before #3261, except that these days the target is centered around the annotation image rather than the center point. There remains a much smaller slop area around the annotation, but nothing close to the effective padding before this change.

Fixes #3880.

/cc @jfirebaugh @BFTE

After filtering out elements of a vector using std::remove_if(), it’s apparently necessary to resize the vector. Otherwise, removing only has the effect of shifting the non-matching items to the end of the vector. This change reduces the annotation tap target back to almost what it was before #3261, except that these days the target is centered around the annotation image rather than the center point. There remains a much smaller slop area around the annotation, but nothing close to the effective padding before this change.

Fixes #3880.
@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Feb 11, 2016
@1ec5 1ec5 self-assigned this Feb 11, 2016
@1ec5 1ec5 added this to the ios-v3.1.1 milestone Feb 11, 2016
@1ec5 1ec5 merged commit 51d7d20 into release-ios-v3.1.0 Feb 11, 2016
@1ec5 1ec5 removed the in progress label Feb 11, 2016
@1ec5 1ec5 deleted the 1ec5-annotation-hit-remove-3880 branch February 11, 2016 06:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant