Map: Minor tweaks

Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
Neeraj Gupta 2023-06-06 09:15:47 +05:30
parent 80f444260a
commit cb02776650
2 changed files with 3 additions and 1 deletions

View file

@ -104,7 +104,7 @@ class _MapScreenState extends State<MapScreen> {
debugPrint("Info for map: minLon $minLon, maxLon $maxLon");
}
} else {
showShortToast(context, "No images with location found");
showShortToast(context, "No images with location");
}
setState(() {

View file

@ -64,6 +64,7 @@ class _MapViewState extends State<MapView> {
options: MapOptions(
minZoom: widget.minZoom,
maxZoom: widget.maxZoom,
enableMultiFingerGestureRace: true,
onPositionChanged: (position, hasGesture) {
if (position.bounds != null) {
if (!_isDebouncing) {
@ -85,6 +86,7 @@ class _MapViewState extends State<MapView> {
TileLayerOptions(
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
subdomains: ['a', 'b', 'c'],
backgroundColor: Colors.transparent,
),
MarkerClusterLayerOptions(
maxClusterRadius: 100,