Skip to content

[BUG] WidgetLayer allowInteraction breaks gestures on Web #365

@jt274

Description

@jt274

Platforms

Web

Version of flutter-maplibre

0.3.0

Bug Description

When allowInteraction is set on a WidgetLayer, the map will no longer pan, zoom, rotate, etc. This appears to have started in version0.3.0 and applies to the Web platform. It seems to be working on Android.

Steps to Reproduce

  1. Create a map with a WidgetLayer under children.
  2. Set the allowInteraction property to true.
  3. Run on Web.
  4. Try to scroll zoom, click to pan, etc.

Expected Results

Map should respond to gestures like on other platforms.

Actual Results

Map does not respond to any gestures.

Code Sample

children: <Widget>[
                WidgetLayer(
                  allowInteraction: true,
                  markers: <Marker>[
                    myMarkers,
                  ],
                ),
              ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions