a14n / dart-google-maps

A library to use Google Maps JavaScript API v3 from Dart scripts.
Other
125 stars 63 forks source link

Flutter Web - marker animations only work when using SKIA #91

Closed datayeah closed 2 years ago

datayeah commented 3 years ago

When i add animation to my custom map markers, it works perfectly when using "--dart-define=FLUTTER_WEB_USE_SKIA=true" as build parameter. As soon as i build the web app without SKIA, the map still works but animations are not shown.

This is the code i use to animate the markers:

Marker marker = Marker(MarkerOptions()
          ..position =LatLng(
              num.parse(mapData[i]['lat']),
              num.parse(mapData[i]['lon']))
          ..icon = (Icon()
            ..url = "assets/static/pin_custom".png"
            ..map = map
            ..size = Size(99.0, 138.0)
            ..anchor = Point(24.0, 62.0)
            ..scaledSize = Size(48.0, 67.0))
          ..animation = Animation.DROP);

Any idea why it only works with SKIA? I am using Flutter version 1.24.0-10.1.pre

a14n commented 3 years ago

Yes this seems related to Flutter.

a14n commented 2 years ago

Closing as it seems related to flutter.