Skip to content

Commit

Permalink
Merge pull request #10 from leewrigg/tile-display-param
Browse files Browse the repository at this point in the history
Adds a tileDisplay param to override default fade-in behaviour
  • Loading branch information
tprebs authored Aug 2, 2023
2 parents af13470 + 6989962 commit fdadd95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/plugin/heatmap_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ class HeatMapLayer extends StatefulWidget {
final HeatMapOptions heatMapOptions;
final HeatMapDataSource heatMapDataSource;
final Stream<void>? reset;
final TileDisplay tileDisplay;

HeatMapLayer(
{super.key,
HeatMapOptions? heatMapOptions,
required this.heatMapDataSource,
List<WeightedLatLng>? initialData,
this.reset})
this.reset,
this.tileDisplay = const TileDisplay.fadeIn()})
: heatMapOptions = heatMapOptions ?? HeatMapOptions();

@override
Expand Down Expand Up @@ -62,6 +64,7 @@ class _HeatMapLayerState extends State<HeatMapLayer> {
backgroundColor: Colors.transparent,
tileSize: 256,
urlTemplate: pseudoUrl,
tileDisplay: widget.tileDisplay,
tileProvider: HeatMapTilesProvider(
heatMapOptions: widget.heatMapOptions,
dataSource: widget.heatMapDataSource)),
Expand Down

0 comments on commit fdadd95

Please sign in to comment.