From 86eba4a8cd65dfa818b763a6cd6c0e961f00f466 Mon Sep 17 00:00:00 2001 From: Esmond Wong Date: Mon, 20 Nov 2023 18:09:50 +0800 Subject: [PATCH] Fix #61 Lines layer not rotating correctly with map --- lib/flutter_map_tappable_polyline.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/flutter_map_tappable_polyline.dart b/lib/flutter_map_tappable_polyline.dart index 3c0c538..783193c 100644 --- a/lib/flutter_map_tappable_polyline.dart +++ b/lib/flutter_map_tappable_polyline.dart @@ -97,9 +97,11 @@ class TappablePolylineLayer extends PolylineLayer { }, child: Stack( children: [ - CustomPaint( - painter: PolylinePainter(lines, mapState), - size: size, + MobileLayerTransformer( + child: CustomPaint( + painter: PolylinePainter(lines, mapState), + size: size, + ), ), ], ),