How to increase zoom per click of tool bar for SfMaps?

Hello,

I am using your SfMaps module with a world.json from your examples.

I am using the toolbar to zoom in and out on MacOS. 

I notice when clicking "Zoom in" on the toolbar, the onWillZoom, will have the same previous zoom value and next zoom value which seems like a bug.

I have also noticed that the zoom in is 0.5 for toolbar zoom in but 1.0 for double tap.

Is there a way to alter the zoom in value? Maybe even more zoom when zoomed out and less when zoomed in.

Thanks

SfMaps(

layers: <MapLayer>[
MapShapeLayer(
onWillZoom: (z) {
z.previousZoomLevel == z.newZoomLevel;
},


5 Replies

PG Praveen Gopalsamy Syncfusion Team November 28, 2022 02:46 PM UTC

Hi Daniel,

 

We are validating your query at our end and we will update further details by November 29, 2022. We appreciate your patience until then.

 

Regards,

Praveen G.



PG Praveen Gopalsamy Syncfusion Team November 30, 2022 04:38 PM UTC

Hi Daniel,

We can reproduce the reported issue at our end and have logged a bug report for it in our feedback portal. However, your requirement can be achieved using the custom toolbar. We have prepared a sample and attached it for your reference. Please let us know if you need any further assistance with this.

Feedback Link: https://www.syncfusion.com/feedback/39509/new-zoom-level-of-onwillzoom-is-not-updated-while-zooming-through-toolbar

Regards,
Praveen G.


Attachment: i179066Flutter_Maps_df7afcc5.zip



YG Yuvaraj Gajaraj Syncfusion Team January 11, 2023 02:37 PM UTC

Hi Daniel,


The reported issue regarding the new zoom level of onWillZoom is not updated while zooming through the toolbar has been fixed and rolled out in our weekly patch release. To avoid this please upgrade the maps package to the latest version mentioned below.


Version: https://pub.dev/packages/syncfusion_flutter_maps/versions/20.4.43


Regards,

Yuvaraj.



DA Daniel January 22, 2023 03:48 PM UTC

Hi again,


Is there a way to make increase the zoom level on every click?

I find the zoom experience weird on a world map. It zooms in quickly at first then very slowly as it nears maximum zoom.

Any ideas?





YG Yuvaraj Gajaraj Syncfusion Team January 23, 2023 02:29 PM UTC

Hi Daniel,


We have checked the world map by increasing the zoom level at every click with the previously shared sample and it is working fine without any issues. We kindly request you to share more information about the issue reproduction steps along with screenshots or screen recordings so that it will help us assist you in a better way. Also, shared the sample which is used for testing purposes.


Regards,

Yuvaraj.


Attachment: f179066_584117a3.zip

Loader.
Up arrow icon