-
Notifications
You must be signed in to change notification settings - Fork 502
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
controller.onFeatureTapped does not work as expected #784
Comments
There are two options to add vector data to the map. The first one is trough annotations. These are Circle Line Fill and Symbol. You do this by calling The other option is to go trough geojson. Add a source with |
The annotations => working as expected, no issues there. However, the geojson path is the one I took.
Result: I see the circle layer on the map, however no way to click on it or receive clicks on features through Again: this is strictly the web I am referring to. I did not test this on mobile. I noticed something which may be useful: if I set up |
@felix-ht which version of Is there a place where I can find compatibility versions list between |
if you want to you can test with https://github.com/flutter-mapbox-gl/maps/tree/fix-web-issues and check if this fixes your issues - this is certainly faster than waiting for it to be merged and released |
I confirm that the issue is now fixed on |
I've followed the
example/lib/layer.dart
, however after adding a circle layer and a symbol layer is not possible to click on features.It is worth mentioning that
onCircleTapped
andonSymbolTapped
(with addCircle and addSymbol ) seem to be working fine.I've tested only web.
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en-GB)
• Flutter version 2.5.2 at /engineering/flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (7 weeks ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
mapbox_gl: ^0.14.0
Expected:
Added a controller.onFeatureTapped => when hover over circles and symbols (layers) the mouse cursor changes to pointer and click event must be caught.
Actual:
When hover over circles and symbols the mouse cursor does not change to pointer and click events on features do not seem possible.
The text was updated successfully, but these errors were encountered: