Android Scrolling issues

Below is my Maps code.  On IOS, you can zoom and scroll with your fingers like any maps app on both the emulator and a device.  On Android scrolling and panning are recognized but unresponsive. I am on Xamarin Forms version 4.5.0.495.  SFMaps version is 17.4.0.55 .  

<maps:SfMaps.Layers>
                        <maps:ImageryLayer
                            x:Name="ThisImageLayer"
                            BingMapKey="xxxxx"
                            BingMapStyle="Road"
                            GeoCoordinates="{Binding GeoCoordinates}"
                            LayerType="Bing"
                            MarkerSelected="Layer_MarkerSelected"
                            Markers="{Binding RestaurantMarkers}">
                            <maps:ImageryLayer.MarkerTemplate>
                                <DataTemplate>
                                    <StackLayout Orientation="Horizontal">
                                        <Image
                                            Aspect="AspectFit "
                                            HeightRequest="15"
                                            HorizontalOptions="StartAndExpand"
                                            Scale="1"
                                            Source="{Binding ImageName}"
                                            VerticalOptions="Center"
                                            WidthRequest="23" />
                                        <Label Text="{Binding Label}" />
                                    </StackLayout>
                                </DataTemplate>
                            </maps:ImageryLayer.MarkerTemplate>
                        </maps:ImageryLayer>
                    </maps:SfMaps.Layers>
                </maps:SfMaps>

5 Replies

VR Vignesh Ramesh Syncfusion Team April 10, 2020 09:28 AM UTC

Hi Kevin, 

Greetings from Syncfusion. 

We have prepared a simple Maps sample with the provided code snippet and checked the reported problem by zooming and panning the Map. But we afraid that, we are not able to reproduce the reported issue in our side. Can you please check with the tested sample and video in the following location? 

Sample link: 

Tested Video link: 

We have suspected that, it may be due to some other external factor like BingMapServer downloading delay or internet downloading speed etc. So, please check with other Maps like OSM, GoogleMap etc. Because we have used same logic, the only difference is tile downloading Uri link. If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to give better solution in this. 

Regards, 
Vignesh. 



JS Jonty Stephan October 23, 2020 08:29 AM UTC

I can confirm this issue is happening on Xamarin Android - OSM/ImageryLayer and ShapeFileLayer as well on the emulator and real devices. 

The behaviour is erratic:

1) Map will only zoom one level when pinching initially in a jagged motion/not in a smooth zooming action. 
2) Only after several re-attempts will it zoom to the required level however this will cause user frustration. 
3) Map gesture recognition is definitely inconsistent with pinch zooming.
4) I've noticed that if the user pinches with two fingers drawing away from each other to zoom (like Google Maps) then the Map stops zooming.
5) Only when one finger is touching the screen statically and then other finger draws away does the Map zoom several layers smoothly.
6) The zoom will lock onto the initial point on the Map and zoom to it. The user cannot move the zoom to another point on the Map while this is happening.
7) Map will not pan consistently. At the moment the Map will sometimes pan laterally/sideways but not in any other direction. 


Please can you look into this as the control usability is a problem compared to using Google Maps.




RS Ramya Soundar Rajan Syncfusion Team October 23, 2020 02:00 PM UTC

Hi Jonty Stephan, 
 
We have created a new incident under your Direct trac account to follow up with this query. We suggest you follow up with the incident for further updates. Please log in using the below link.  
 
 
Regards, 
Ramya S 



SE Seth March 23, 2022 11:59 PM UTC

Hello,

I noticed this thread was for the Android issue a couple years ago, but I am having very similar issues with iOS. The scrolling feature is not stable and behaves erratically. Anytime, I try to zoom in, it pans the pointer to the top left far off course and will not let the user move the map back. When I moved with one finger on the screen, the map moves as normal. Then, I can zoom in and out to a limited degree by a about level or two before it stops and moves the map to the top left far off course.

Meanwhile, the scrolling feature is smooth and provides more detail when the map is zoomed in on Android as it should. This behavior is what should be expected on iOS.



ET Eswaran Thirugnanasambandam Syncfusion Team March 25, 2022 11:48 AM UTC

  
Hi Seth, 
 
For further updates, please refer to the ticket that was created under your account. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon