Skip to content
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

Symbol draggable not working #130

Closed
agubha opened this issue Nov 27, 2019 · 5 comments · Fixed by #381
Closed

Symbol draggable not working #130

agubha opened this issue Nov 27, 2019 · 5 comments · Fixed by #381
Assignees
Labels
android bug Something isn't working

Comments

@agubha
Copy link

agubha commented Nov 27, 2019

I was suppose make marker move inside the map but the code inside the example/place_symbol.dart
`

if (_selectedSymbol != null) {
  _updateSelectedSymbol(
    const SymbolOptions(iconSize: 1.0),
  );
}
setState(() {
  _selectedSymbol = symbol;
});
_updateSelectedSymbol(
  SymbolOptions(
    iconSize: 1.4,
  ),
);

`
The Above code does not work as i cannot move the marker. Only the map moves

@TimothySealy
Copy link
Collaborator

Hi @agubha, just to be sure have are you talking about the Android version of the plugin? In the current release 0.0.4 draggable is not supported in iOS. In this PR #124 draggable is supported in iOS.

@agubha
Copy link
Author

agubha commented Dec 2, 2019

@TimothySealy Actually i was talking about android.
I made few twist to make my app work without making the icon draggable for now.
but in the context of the above mention issue i ran the example code without any change and it still had the issue. I tested in few devices before giving all up.

@tobrun
Copy link
Collaborator

tobrun commented Dec 7, 2019

Thank you for the report @agubha , was able to reproduce the issue

@tobrun tobrun added android bug Something isn't working labels Dec 7, 2019
@tobrun tobrun self-assigned this Dec 7, 2019
@tobrun
Copy link
Collaborator

tobrun commented Dec 7, 2019

Validated that upstream is working as expected. Will be related to either touch handling or how the manager are setup.

@m0nac0
Copy link
Collaborator

m0nac0 commented May 24, 2020

@tobrun I found the reason for this issue. Dragging events will only ever work for the last annotation manager we enable in
https://github.com/tobrun/flutter-mapbox-gl/blob/2339ab64c64ff75d544385ae16a35b3998dfc1be/android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java#L324-L326
If for example LineManager is the last one to be enabled, then dragging lines will work, but symbols and circles can't be dragged. There's mapbox/mapbox-plugins-android#863 upstream to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants