refactor: map query
This commit is contained in:
@@ -19,7 +19,7 @@ class MapBottomSheet extends ConsumerWidget {
|
||||
|
||||
return ProviderScope(
|
||||
overrides: [
|
||||
// TODO: refactor (timeline): when ProviderScope changed, we should refresh timeline
|
||||
// TODO: when ProviderScope changed, we should refresh timeline
|
||||
timelineServiceProvider.overrideWith((ref) {
|
||||
final timelineService =
|
||||
ref.watch(timelineFactoryProvider).map(bounds);
|
||||
|
||||
@@ -74,7 +74,8 @@ class _DriftMapWithMarkerState extends ConsumerState<DriftMapWithMarker> {
|
||||
}
|
||||
|
||||
await mapController!.addSource(
|
||||
MapUtils.defaultSourceId, GeojsonSourceProperties(data: markers),
|
||||
MapUtils.defaultSourceId,
|
||||
GeojsonSourceProperties(data: markers),
|
||||
);
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
|
||||
Reference in New Issue
Block a user