From 698996296167304d076e71b52aa1164cfb0470fa Mon Sep 17 00:00:00 2001 From: leewrigg Date: Mon, 31 Jul 2023 12:37:28 +0100 Subject: [PATCH] Adds a tileDisplay param to override default behaviour --- lib/src/plugin/heatmap_layer.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/plugin/heatmap_layer.dart b/lib/src/plugin/heatmap_layer.dart index b5b214e..4b2859d 100644 --- a/lib/src/plugin/heatmap_layer.dart +++ b/lib/src/plugin/heatmap_layer.dart @@ -8,13 +8,15 @@ class HeatMapLayer extends StatefulWidget { final HeatMapOptions heatMapOptions; final HeatMapDataSource heatMapDataSource; final Stream? reset; + final TileDisplay tileDisplay; HeatMapLayer( {super.key, HeatMapOptions? heatMapOptions, required this.heatMapDataSource, List? initialData, - this.reset}) + this.reset, + this.tileDisplay = const TileDisplay.fadeIn()}) : heatMapOptions = heatMapOptions ?? HeatMapOptions(); @override @@ -62,6 +64,7 @@ class _HeatMapLayerState extends State { backgroundColor: Colors.transparent, tileSize: 256, urlTemplate: pseudoUrl, + tileDisplay: widget.tileDisplay, tileProvider: HeatMapTilesProvider( heatMapOptions: widget.heatMapOptions, dataSource: widget.heatMapDataSource)),