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)),