Skip to content

Symbol draggable not working #130

Closed

Description

@agubha

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

Activity

  1. TimothySealy commented on Dec 2, 2019

    @TimothySealy
    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.

  2. agubha commented on Dec 2, 2019

    @agubha
    Author

    @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.

  3. tobrun commented on Dec 7, 2019

    @tobrun
    Collaborator

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

  4. added
    bug
    on Dec 7, 2019
  5. self-assigned this
    on Dec 7, 2019
  6. tobrun commented on Dec 7, 2019

    @tobrun
    Collaborator

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

  7. m0nac0 commented on May 24, 2020

    @m0nac0
    Collaborator

    @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

Metadata

Metadata

Assignees

Labels

androidbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions