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

add Polyline and Polygon click listeners - #9443

Merged
tobrun merged 1 commit into
masterfrom
3720-polygon-polyline-click
Jul 18, 2017
Merged

tobrun merged 1 commit into
masterfrom
3720-polygon-polyline-click

Conversation

@tobrun

@tobrun tobrun commented Jul 7, 2017

Copy link
Copy Markdown
Member

Closes #3720, still a WIP though fully functional.
Going to land #9424 first as it introduces a couple of refactors to related code.

ezgif com-video-to-gif 63

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jul 7, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Jul 7, 2017
@tobrun tobrun self-assigned this Jul 7, 2017
@tobrun

tobrun commented Jul 7, 2017 •

Copy link
Copy Markdown
Member Author

First tests above were done with an emulator with mouse support. On a real device it's harder to get a correct tap registered, will have to move from using tapPoint to tapRectangle.

@tobrun

tobrun commented Jul 7, 2017

Copy link
Copy Markdown
Member Author

Below small test with Polygon holes:

ezgif com-video-to-gif 65

@tobrun
tobrun force-pushed the 3720-polygon-polyline-click branch 3 times, most recently from b5c9759 to 835c7ba Compare July 7, 2017 15:05
@1ec5

1ec5 commented Jul 7, 2017

Copy link
Copy Markdown
Contributor

First tests above were done with an emulator with mouse support. On a real device it's harder to get a correct tap registered, will have to move from using tapPoint to tapRectangle.

This makes sense, since even marker selection via mbgl::Map::queryPointAnnotations() takes a rectangle rather than a point.

@tobrun
tobrun force-pushed the 3720-polygon-polyline-click branch 3 times, most recently from ca90f31 to a7f7011 Compare July 11, 2017 09:37
@tobrun
tobrun force-pushed the 3720-polygon-polyline-click branch from a7f7011 to 2baf8d1 Compare July 14, 2017 08:25

@Guardiola31337 Guardiola31337 left a comment

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.

:shipit:

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