Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.0.3]

* Preserve tile widget state during map movement to prevent flickering with asynchronously loaded tiles.

## [2.0.2]

* Shape layers are more customizable now.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layers/tile_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ class _TileLayerState extends State<TileLayer> {
final oy = (j * tileSizeScaled) + centerY - ttl.y;

final child = Positioned(
key: ValueKey('$fixedZoom/$i/$j'),
width: tileSizeScaled.ceilToDouble(),
height: tileSizeScaled.ceilToDouble(),
left: ox.floorToDouble(),
top: oy.floorToDouble(),
child: widget.builder
.call(context, i, j, (_controller.zoom + 0.0000001).floor()),
child: widget.builder.call(context, i, j, fixedZoom),
);

children.add(child);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: map
description: Geographical Map widget for flutter supporting different projections including EPSG4326/Mercator/WGS1984.
version: 2.0.2
version: 2.0.3
homepage: https://pwa.ir
repository: https://github.com/xclud/flutter_map

Expand Down