Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
Update document
  • Loading branch information
ankiimation committed Feb 27, 2023
1 parent a8007ae commit 1e7ef4b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 18 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.1

* Update document
## 1.0.0

* PUMP flutter_map to 3.0.0
Expand Down
50 changes: 34 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,39 @@ dependencies:
```dart
return FlutterMap(
mapController: mapController,
options: MapOptions(
center: LatLng(51.509364, -0.128928),
zoom: 9.2,
plugins: [AnimatedMarkerPlugin()]),
layers: [
TileLayerOptions(
urlTemplate: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
),
AnimatedMarkerLayerOptions(
marker: Marker(
point: LatLng(0, 0),
builder: (context) => FlutterLogo(),
mapController: mapController,
options: MapOptions(
center: LatLng(51.509364, -0.128928),
zoom: 9.2,
),
),
],
);
children: [
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
),
if (locationData != null)
AnimatedMarkerLayer(
options: AnimatedMarkerLayerOptions(
duration: Duration(
milliseconds: duration,
),
marker: Marker(
width: 30,
height: 30,
point: LatLng(
nextSimulateLocation.latitude,
nextSimulateLocation.longitude,
),
builder: (context) => Center(
child: Transform.rotate(
angle: max(0, locationData.heading ?? 0) * pi / 180,
child: Image.asset(
'lib/assets/puck.png',
),
),
),
),
),
),
],
);
```
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.0.1"
flutter_test:
dependency: "direct dev"
description: flutter
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: flutter_map_animated_marker
description: Animated marker for flutter_mapp
version: 1.0.0
version: 1.0.1
homepage: https://github.com/ankiimation/flutter_map_animated_marker

environment:
Expand Down

0 comments on commit 1e7ef4b

Please sign in to comment.