Please try zooming and panning of your example in iPhone browser its not working
Web and Android works fine.
https://flutter.syncfusion.com/?_gl=1*10wro3o*_ga*MjA5Mjg2MTY0MS4xNjcyMjAzNzY0*_ga_WC4JKKPHH0*MTY3MzQ5ODE5MC43LjEuMTY3MzQ5OTAxMC4wLjAuMA..&_ga=2.192414702.572497299.1673443219-2092861641.1672203764#/maps/shape-layer/zooming
This is your example which is not consistent at zooming and panning.
One more observation, We implemented map referring this example. Faced the same issue. we
disabled the "pinch zoom" then pan worked fine.
Hi Dhananjay,
We are validating your query at our end and we will update further details in one business day on 17 January 2023. We appreciate your patience until then.
Regards,
Yuvaraj.
Hi Dhananjay,
We are able to replicate the reported issue regarding zooming and panning is not predictive in the iPhone browser at our end and have logged a bug report for it in our feedback portal. We will fix and include the changes in our weekly patch which is expected to be rolled out on 24 January 2023. We will update you here once the release is rolled out and we appreciate your patience until then. You can also track the status of the bug with the feedback below.
Feedback: https://syncfusion.com/feedback/40437/
Regards,
Yuvaraj.
Hi Yuvaraj,
Thanks for updates. Eagerly waiting to see it working on desktop browser, mobile browser, android app and ios app
Regards,
Dhananjay.
Hi Dhananjay,
Thank you for your update. As we stated before, we will update you once the fix is rolled out in our weekly patch release. We appreciate your patience until then.
Regards,
Yuvaraj.
Hi Yuvaraj,
Hope we are on track on this. Sorry to bother you again but Actually we planned our project cycle considering that, we will get fix today :)
Regards,
Dhananjay.
Hi Dhananjay,
Sorry for the inconvenience. Due to the complexity of issue fixing, we are unable to move this fix to today's weekly patch. We are working on this with high priority and will move this issue fix in our upcoming weekly patch which is expected to be rolled out on 7 February 2023. We will update you here once the release is rolled out and we appreciate your patience until then.
Regards,
Yuvaraj.
Hello Yuvraj,
Ok, Just in case if it's available prior to that Please update me.
Thanks,
Dhananjay.
Hi Dhananjay,
As we stated before the fix will be included in our upcoming weekly patch release on 7th Feb 2023. We will update you once the release got rolled out. We appreciate your patience until then.
Regards,
Yuvaraj.
Hi Yuvaraj,
We planned our GA release plan considering that you will give us this fix on 7th Feb 2023
Hope your development team is on track of giving this fix on 7th Feb 2023 ?
Regards,
Dhananjay.
The map zoom and panning seems to be broken in mobile web (Chrome and Safari). Tried with the latest version of the library in Flutter and it still did not work. Kindly fix the issue at the earliest.
Hi Dhananjay,
As we stated before the fix will be included in our upcoming weekly patch release on 7th Feb 2023. We will update you once the release got rolled out. We appreciate your patience until then.
Regards,
Yuvaraj.
Hi Yuvaraj,
I saw pub dev release 20.4.49. Fix is included in build ?
Regards,
Dhananjay.
Hi Dhananjay,
We apologize for the inconvenience. The reported issue has been fixed and is currently under the testing phase. As a result, we are unable to move the fix to the promised timeline. We are giving high priority to this issue and plan to incorporate the changes in our weekly patch, which is scheduled for release on February 14, 2023. We will keep you updated once the release has been rolled out. Thank you for your patience.
Regards,
Lavanya A.
Hi Lavanya,
We already planned our release. Is it possible to release it as soon as testing is completed ? (Not to wait for weekly release).
Actually we are waiting and postponing our release since last 3 weeks. And syncfusion team also postponing since last 2 releases.
Hope you understand our situation.
Regards,
Dhananjay.
Hi Dhananjay,
We had to postpone the fix delivery due to testing, which took longer than expected. We understand that this may have caused you some inconvenience, and we sincerely apologize. Our primary goal is to provide a high-quality solution that completely solves the problem. The fix will be included in our next weekly path release on February 14th, 2023. We will keep you updated once the release has been rolled out. We appreciate your understanding until then.
Regards,
Yuvaraj.
Hi yuvaraj,
Thank you for your release commitment for this fix on 14'th Feb 2023. Could you reconfirm with testing team on tomorrows release?. Actually we Have to explore other charting libraries if this core functionality is not possible to
include in tomorrows release.
Regards,
Dhananjay.
Hi Dhananjay,
The reported issue regarding zooming and panning is not predictive in the iPhone browser has been fixed and rolled out in our weekly patch release. To avoid this please upgrade the maps package to the below version.
Version: https://pub.dev/packages/syncfusion_flutter_maps/versions/20.4.50
Regards,
Yuvaraj.
Hello Yuvaraj,
Thanks for info. We upgraded build at our end.
Below are our settings.
```
enablePanning: true,
enablePinching: true,
enableDoubleTapZooming: true
```
Our build command is:
flutter build web --no-sound-null-safety --web-renderer html
It seems on iphone browser we still have an issue for pinching initially (We checked with iphone 12). We will validate again on multiple devices.
Meanwhile, Have you updated your example code with this latest version ?
Hello yuvaraj,
Just as additional info it might help. We feel "mapshape selection" of MapShapeLayer and "pinching" not going hand in hand on iphone browser. MapTile Layer might work properly. This is just our assumption but you can reconfirm.
Regards,
Dhananjay.
Lavany / Yuvaraj,
Do you have any update on this ? I tagged yuvaraj multiple times but no response.
Whichever current condition of issue is. please let us know. We also have to communicate with our end user.
Reply at End Of Day is not useful actually.
We are ready to show you issue on conference call. Please let us know, I will schedule.
Regards,
Dhananjay.
Hi Dhananjay,
We have checked the latest patch release which includes the zooming and panning is not predictive in the iPhone browser and ensured at our end it is working fine. It may occur due to the cache issue, so could you please clear the cache and check again. We have also shared the sample below for your reference.
If you are still facing the same issue, we kindly request you to share us with more information on your requirement in detail along with screenshots or screen recordings so that it will help us assist you in a better way.
Regards,
Yuvaraj.
Hello Yuvaraj,
Thank you for code sample i will run it and i will check behavior.
Please see attached video. Its recorded on android. My code is built on latest release.
Video will explain what i meant to say.
Regards,
Dha
Hi Dhananjay,
We have attempted to reproduce the issue reported regarding zooming not functioning on the iPhone browser with the latest map package version. Regrettably, we were unable to replicate the problem on our end. We have confirmed that zooming is working correctly on both Android and iOS web browsers, without any issues. So, we kindly request you to share the following information, which would be more information.
These details will allow us to further investigate the issue and let us assist you in a better way.
Note: This issue with panning on the iPhone browser is a flutter framework-level break. We have resolved the issue internally in our source code. For your reference, we have included the link to the issue below.
Issue: https://github.com/flutter/flutter/issues/111468
We have also shared the output video of the iOS web browsers with and without fixes for your reference.
Regards,
Yuvaraj.
Hello Yuvaraj,
Thank you so much for updates.
We deployed your version and it's working fine.
We are identifying changes in our code with respect to your code.
We will update you soon.
Regards,
Dhananjay.
Hi Dhananjay,
Thanks, We will wait for your further updates.
Regards,
Yuvaraj.
Hi Yuvaraj,
We identified cause for issue and able to reproduce it. issue is because we have parent widgets for "SfMaps" like,
ListView, CarouselSlider and SingleChildScrollView, which has scroll physics. And scroll physics and pinching not going hand in hand. Actually on parent level of "SfMaps" we need these widgets because we have many maps and other charts as group, and we need scroll bar for it.
I will edit your example and i will sent you back.
Regards,
Dhananjay.
Hi Dhananjay,
Thank you. We look forward to your next update.
Thanks,
Yuvaraj.
Hi Yuvaraj,
Please find attached code to reproduce issue.
If we wrap "SfMaps" into components having scroll physics its giving unpredictable zoom behavior, sometime work many time it wont work. I think its something related to scroll event and pinching event collision.
A simple use case is : i want show many maps in ListView with scroll enabled.
Just for example : in the attached code, i added same map 3 time . Try to zoom by pinching on android or IOS browser.
Regards,
Dhananjay.
Hi Dhananjay,
We are checking the shared sample at our end and we will update the further details in one business day on 22 February 2023. We appreciate your patience until then.
Regards,
Yuvaraj.
Hi Dhananjay,
We have reviewed your sample and found that you have initialized the MapZoomPanBehavior and used the same instance for all the SfMaps widgets inside the ListView. As a result, when you try to perform pinch zoom on the map, it will only zoom the last map in the view, which makes it appear as though the map is not zooming properly. To fix this, we recommend that you initialize the MapZoomPanBehavior for each map and assign it to the respective SfMaps. Now the pinch zooming is working properly.
Regarding panning, we noticed that you have wrapped the SfMaps inside the ListView, and when you pan vertically, Listview takes a touch gesture and it scrolls with ListView only. We tested this behavior with the InteractiveViewer widget in Flutter and noticed that it exhibits the same behavior. This is because it is the default behavior of the ListView and its child widgets.
We have shared the modified sample below for your reference.
Regards,
Yuvaraj.
Yuvaraj,
Thanks.
I will use separate MapZoomPanBehavior
Regarding ListView we understand technical point. But thing is my current app has ListView as parent widget which holds Maps. And hence the issue.
In general and for betterment of syncfusion can we document this. Because i feel many other will face this.
E.g Someone might have an stable app which uses ListView, CarouselSlider,
SingleChildScrollView (Lets say social app where Scroll is required to browse through different charts , posts, etc etc) and now wanted to show a map in app using syncfusion. But in this case zoom will not work because parent widgets takes a touch gesture.
This is just a request. :)
Thanks for supporting. We understand this fully.
Hi Dhananjay,
We have validated your query, and currently checking your requirement at our end and will update complete details in one business day at March 20, 2023.
Regards,
Lavanya A.
Hi Dhananjay,
We have validated your query, and still checking your requirement at our end and will update the complete details tomorrow and we appreciate your patience until then.
Regards,
Yuvaraj.
Hi Dhananjay,
We have already logged a feature request for map gesture improvement in our feedback portal. We will prioritize the features of every release based on demand and priority. So, this feature will be available in any of our upcoming releases. You can also track the status of the feature with the feedback below.
Regards,
Yuvaraj.