From 1f83291c70c54d1a2e206ac791be2b922ad9a782 Mon Sep 17 00:00:00 2001 From: oandeliz <59943720+oandeliz@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:49:44 -0400 Subject: [PATCH 1/2] fix: #525 `markerOption` missing in `OSMOption` ctor fixes #525 --- lib/src/common/osm_option.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/src/common/osm_option.dart b/lib/src/common/osm_option.dart index 6b63f1a3..72ed3207 100644 --- a/lib/src/common/osm_option.dart +++ b/lib/src/common/osm_option.dart @@ -12,6 +12,8 @@ import 'package:flutter_osm_interface/flutter_osm_interface.dart'; /// /// [staticPoints] : (List) if you have static point that you want to show,like static of taxi or location of your stores /// +/// [markerOption] : contain marker of geoPoint and customisation of advanced picker marker +/// /// [userLocationMarker] : change user marker or direction marker icon in tracking location /// /// [roadConfiguration] : (RoadConfiguration) set color and icons marker of road @@ -32,6 +34,7 @@ class OSMOption { this.isPicker = false, this.showContributorBadgeForOSM = false, this.userTrackingOption, + this.markerOption, }); final bool showZoomController; final List staticPoints; @@ -43,6 +46,7 @@ class OSMOption { final bool isPicker; final bool showContributorBadgeForOSM; final UserTrackingOption? userTrackingOption; + final MarkerOption? markerOption; } /// [ZoomOption] @@ -79,9 +83,9 @@ class ZoomOption { final double maxZoomLevel; Map get toMap => { - "stepZoom":stepZoom.toInt(), - "initZoom":initZoom.toInt(), - "minZoom":minZoomLevel.toInt(), - "maxZoom":maxZoomLevel.toInt(), - }; + "stepZoom": stepZoom.toInt(), + "initZoom": initZoom.toInt(), + "minZoom": minZoomLevel.toInt(), + "maxZoom": maxZoomLevel.toInt(), + }; } From 2c971353ab396896a0e91f376fc3b1a612beecde Mon Sep 17 00:00:00 2001 From: oandeliz <59943720+oandeliz@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:55:03 -0400 Subject: [PATCH 2/2] format typos --- lib/src/common/osm_option.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/common/osm_option.dart b/lib/src/common/osm_option.dart index 72ed3207..f61fbb85 100644 --- a/lib/src/common/osm_option.dart +++ b/lib/src/common/osm_option.dart @@ -83,9 +83,9 @@ class ZoomOption { final double maxZoomLevel; Map get toMap => { - "stepZoom": stepZoom.toInt(), - "initZoom": initZoom.toInt(), - "minZoom": minZoomLevel.toInt(), - "maxZoom": maxZoomLevel.toInt(), - }; + "stepZoom":stepZoom.toInt(), + "initZoom":initZoom.toInt(), + "minZoom":minZoomLevel.toInt(), + "maxZoom":maxZoomLevel.toInt(), + }; }