Skip to content

Commit 03d1def

Browse files
committed
feature : add tile to useMapController
1 parent 816698c commit 03d1def

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/use_osm.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_osm_plugin/flutter_osm_plugin.dart';
33
import 'package:osm_flutter_hooks/src/osm_hook.dart';
44

55
/// [useMapIsReady]
6-
///
6+
///
77
/// the function will call [MapIsReadyHook]
88
void useMapIsReady({
99
required MapController controller,
@@ -18,20 +18,22 @@ void useMapIsReady({
1818
}
1919

2020
/// [useMapController]
21-
///
21+
///
2222
/// the function will call [MapControllerHook] to initialize [MapController]
2323
/// return [MapController] that will passe to [OSMFlutter]
2424
MapController useMapController({
2525
bool initMapWithUserPosition = false,
2626
GeoPoint? initPosition,
2727
BoundingBox? areaLimit = const BoundingBox.world(),
28+
CustomTile? tile,
2829
}) {
2930
assert(initMapWithUserPosition ^ (initPosition != null));
3031
return use(
3132
MapControllerHook(
3233
initMapWithUserPosition: initMapWithUserPosition,
3334
initPosition: initPosition,
3435
areaLimit: areaLimit,
36+
tile: tile,
3537
),
3638
);
3739
}

0 commit comments

Comments
 (0)