-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add line annotations #33
Conversation
Re. annotation click handling and having support for more types, in the Circle PR, I'm using the base AnnotationClick to support this https://github.com/tobrun/flutter-mapbox-gl/pull/37/files#diff-5def2a7288f868311179d4a318f1183dR453 |
Thanks, @tobrun ! I added onLineTapped. Can you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! (example could be expanded a bit but let's revisit that later)
} | ||
final List<?> data = toList(o); | ||
List<LatLng> latLngList = new ArrayList<>(); | ||
data.forEach((element) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call requires API level 24?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I changed it to a for loop.
* Add line Annotations * add line properties to examples * Add onLineTapped * change forEach to for * fix error in merge * fix methods order
Some examples are still missing, as well as a line onClick event.