From d525855f6b40b2b0e9c4d023594d7bd73c7f703c Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Thu, 1 Feb 2024 18:42:57 +0100 Subject: [PATCH] fix min max zoom for example app --- example/lib/flutter_map_scalebar/page.dart | 2 ++ flutter_map_scalebar/lib/src/scalebar.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/example/lib/flutter_map_scalebar/page.dart b/example/lib/flutter_map_scalebar/page.dart index 98330b2..09ff266 100644 --- a/example/lib/flutter_map_scalebar/page.dart +++ b/example/lib/flutter_map_scalebar/page.dart @@ -17,6 +17,8 @@ class FlutterMapScalebar extends StatelessWidget { options: const MapOptions( initialCenter: LatLng(48, 9), initialZoom: 8, + minZoom: 0, + maxZoom: 24, ), children: [ TileLayer( diff --git a/flutter_map_scalebar/lib/src/scalebar.dart b/flutter_map_scalebar/lib/src/scalebar.dart index 9d3ea83..22f75b3 100644 --- a/flutter_map_scalebar/lib/src/scalebar.dart +++ b/flutter_map_scalebar/lib/src/scalebar.dart @@ -119,5 +119,6 @@ const _scale = [ 25, 10, 5, + 2, 1, ];