MapTileLayer with OSM rendering issueswhere

I try to display OSM using MapTileLayer with a custom marker in the center. The map gets loaded successfully but it is not displayed property. There is an empty space above the marker (the map is displayed partially). SfMaps gets correct Height and Width and places the marker just in the center of the view, so it seems to be an internal control issue. The parent layout constraints the map's Height and Width to having HeightRequest="190" WidthRequest="290"

Since I do not want a user to interact with the map, I have disabled animations, panning, zooming and double tap zooming. 

The location data I use is Latitude 37,785834 Longitude -122,406417. My view model supplies this location to the MapTileLayer.Center and Markers collection as a single item in it. Zoom level is 14.

If I enable panning and try to scroll the map, it gets displayed correctly at some time while trying to center back to my location shows empty space again.

ZIP file in the attachments has XAML example I use and the screenshots describing the issue.


.NET MAUI: 7.0.92

Syncfusion: 22.2.9

Platforms affected

iOS - has empty space

Android - displays the marker but does not render the map

Other platforms - have not tried


Attachment: SfMaps_a406615d.zip

8 Replies 1 reply marked as answer

VO Vishal Omprasad Syncfusion Team August 16, 2023 01:30 PM UTC

Hi Oleg,

Based on the shared details we have checked the reported issue “rendering issues in MapTileLayer with OSM” with a simple sample and we are unable to reproduce the issue from our end. In the sample we have used your shared code snippet with few modifications and tested in all the platforms (Android, iOS, Windows, and MacOS). We have shared the tested sample and tested output screenshots below for your reference.

Additional information:

SfMaps version: 22.2.9

Please check our sample and let us know if you still facing the same issue? if not, please modify our sample and revert us back with the following details which would be helpful for us to check on it and provide you the solution as soon as possible,

  • Share the tested device details.

  • Share the issue replicated video.

  • Share the issue reproducible sample.

Regards,

Vishal O.


Attachment: MapsDemo_6db5b489.zip


OK Oleg Kaliuzhnyi replied to Vishal Omprasad August 25, 2023 07:28 AM UTC

Thank you for your reply!


I've updated your sample by wrapping the map into a Grid and setting HeightRequest and WidthRequest. Now the issue is reproducible on iOS. I use iPhone 14 Pro Max Simulator running iOS 16.4. Attaching a ZIP file with updated sample and the screenshot of how it looks on my side.


Moreover, I tried to set HeightRequest and WidthRequest directly on the map element and use it without the wrapper as a workaround - it showed me a different map region: the requested center and the marker were outside the visible map bounds.


As for the Android one, now it works fine. I assume it was a connection issue that time.


Attachment: MapsDemoIosIssue_369cf9a3.zip


SS SaiGanesh Sakthivel Syncfusion Team August 28, 2023 01:22 PM UTC

Hi Oleg,


Currently, we are checking the reported scenario from our end. we will update you on further details on August 30, 2023. We appreciate your patience until then.


Regards,
SaiGanesh Sakthivel



VO Vishal Omprasad Syncfusion Team August 30, 2023 01:28 PM UTC

Hi Oleg,

Currently, we are analysing the query with the source. We will validate and update you with further details shortly. We appreciate your patience until then.

Regards,

Vishal O.



OK Oleg Kaliuzhnyi replied to Vishal Omprasad August 30, 2023 01:31 PM UTC

Hi there Vishal!

Thank you for the update.



VO Vishal Omprasad Syncfusion Team September 5, 2023 02:24 PM UTC

Hi Oleg,

We have checked and we are able to replicate the reported scenario “rendering issues in MapTileLayer with OSM” in the .NET MAUI SfMaps control. We have logged issue report for the same. We will fix this issue and include the issue fix in our Weekly NuGet release update which is expected to be available by September 26, 2023. We appreciate your patience until then.

You can track the status of this report through the following feedback link.

Feedback link: https://www.syncfusion.com/feedback/46645/maptilelayer-with-osm-did-not-rendered-properly-on-specific-regions


Note: The provided feedback link is private, and you need to log in to view this feedback.

Regards,

Vishal O.



VO Vishal Omprasad Syncfusion Team September 26, 2023 12:52 PM UTC

Hi Oleg,

We have fixed the issue MapTileLayer with OSM did not rendered properly on specific regions in the .NET MAUI SfMaps control, from our end. Due to the testing phase, we have prepared a custom patch (assembly) and shared below. Please check with our patch and let us know whether your issue is resolved.

Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache.

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache

Please refer to the following KB documentation on how to configure the custom assembly: https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

Disclaimer:

Please note that these custom assemblies were created for version 23.1.36 specifically to address this issue. The fix will be included in our upcoming weekly NuGet release. We appreciate your patience until then.

Regards,

Vishal O.


Attachment: Custom_Assembly_dd852b96.zip


VO Vishal Omprasad Syncfusion Team October 4, 2023 12:55 PM UTC

Hi Oleg,

We have fixed the reported issue "MapTileLayer with OSM did not rendered properly on specific regions" in the .NET MAUI SfMaps control and included the fix in our latest Weekly NuGet release update version 23.1.39, which is available for download at nuget.org.

We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.

Regards,

Vishal O.


Marked as answer
Loader.
Up arrow icon