Skip to content

Commit 86eba4a

Browse files
author
Esmond Wong
committed
Fix OwnWeb#61 Lines layer not rotating correctly with map
1 parent 66bdee4 commit 86eba4a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/flutter_map_tappable_polyline.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ class TappablePolylineLayer extends PolylineLayer {
9797
},
9898
child: Stack(
9999
children: [
100-
CustomPaint(
101-
painter: PolylinePainter(lines, mapState),
102-
size: size,
100+
MobileLayerTransformer(
101+
child: CustomPaint(
102+
painter: PolylinePainter(lines, mapState),
103+
size: size,
104+
),
103105
),
104106
],
105107
),

0 commit comments

Comments
 (0)