Skip to content

Commit

Permalink
mobile: update concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlong-tanwen committed Nov 8, 2023
1 parent 3211760 commit 9022b6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mobile/lib/modules/map/providers/map_state.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class MapStateNotifier extends StateNotifier<MapState> {
tileProviders: state.mapStyle!.providers!,
theme: state.mapStyle!.theme!,
sprites: state.mapStyle!.sprites,
concurrency: 6,
);
}
return const Center(child: ImmichLoadingIndicator());
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/modules/map/views/map_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class MapPageState extends ConsumerState<MapPage> {
final isLoading =
ref.watch(mapStateNotifier.select((state) => state.isLoading));
final maxZoom = ref.read(mapStateNotifier.notifier).maxZoom;
final zoomLevel = math.min(maxZoom, 16.0);
final zoomLevel = math.min(maxZoom, 14.0);

if (refetchMarkers.value) {
mapMarkerData.value = ref.watch(mapMarkersProvider).when(
Expand Down
2 changes: 1 addition & 1 deletion mobile/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ packages:
description:
path: "."
ref: immich_above_4
resolved-ref: "123f6028b0dfed0b7826350a39e6d987df75ee7f"
resolved-ref: dc685bdbcca2ff2b49b4d0fb77b7bc17fad48608
url: "https://github.com/shenlong-tanwen/flutter-vector-map-tiles.git"
source: git
version: "4.0.0"
Expand Down

0 comments on commit 9022b6b

Please sign in to comment.