SfMaps OSM

Hi,

I am using SfMaps control 18.4.0.43 in my Xamarin forms app, but can't seem to get OSM to display within may app.

Any help would be greatly appreciated.

Regards

8 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team February 25, 2021 02:10 PM UTC

Hi Jano Moller,

Greetings from Syncfusion.

We have checked the reported query and we have prepared a simple sample for your requirement.  Please have a sample from the below link.

https://www.syncfusion.com/downloads/support/forum/162980/ze/OsmLayer_Sample-1664703939 
 
  


For more information about maps ImageryLayer
https://help.syncfusion.com/xamarin/maps/mapsprovider

Please check the sample and revert us if your requirement is different from this.

Let us know if you need any further assistance.

Regards,
Sridevi S.
 
 



JA Jano February 26, 2021 05:41 AM UTC

Hi Sridevi,

Thank you so much for your fast response. I compared your sample code with my code and realized that the map was not rendering because I was using it inside of a stacklayout. For the page I am designing I need the map to be inside of a stacklayout, so I am just going to have to play around with it a bit more.

Regards,
Jano


SS Sridevi Sivakumar Syncfusion Team February 26, 2021 01:10 PM UTC

Hi  Jano Moller,

We would like to inform you that you can resolve this problem by setting the HeightRequest and WidthRequest to the SfMap. Since StackLayout height will be infinitive and the map doesn't have a default size.

Code snippet:
 
<StackLayout> 
    <maps:SfMaps HeightRequest="500" WidthRequest="500" > 
        <maps:SfMaps.Layers> 
            <maps:ImageryLayer LayerType="OSM"/> 
        </maps:SfMaps.Layers> 
    </maps:SfMaps> 
</StackLayout>  
Let us know if you need any further assistance.

Regards,
Sridevi S.
 


Marked as answer

JA Jano March 15, 2021 08:07 AM UTC

Hi,

The SfMaps control was working well in my app since you provided the code sample. However, it suddenly stopped working again. Could you please look into it, and provide me with a possible solution? That would be greatly appreciated. I am using the latest stable version of the SfMaps control, version 18.4.0.47.

Code sample:
<StackLayout>
        <maps:SfMaps HeightRequest="500" WidthRequest="500" >
            <maps:SfMaps.Layers>
                <maps:ImageryLayer LayerType="OSM"/>
            </maps:SfMaps.Layers>
        </maps:SfMaps>
    </StackLayout>

Regards,


BK Bharathiraja K Syncfusion Team March 16, 2021 05:19 PM UTC

Hi Jano,

It is looking related to open street map authentication problem and currently we have reported the problem in open street map support forum. Also we are analyzing further on this.


We will update you once the solution found. 

Regards, 
Bharathiraja.


JA Jano March 17, 2021 08:16 AM UTC

Hi Bharathiraja,

Thank you for your quick response. I noticed that OSM was down in the Syncfusion Components for Xamarin.Forms application as well, and decided to switch to the Google Maps API, which has worked well so far as well.

Regards,
Jano


SS Sridevi Sivakumar Syncfusion Team March 17, 2021 03:17 PM UTC

 Hi Jano Moller,

Downloading tiles from OSM server, recently blocked due to authentication problem and we will resolve this problem in our next release. We will update the status once it is resolved.

Regards,
Sridevi S.



SS Sridevi Sivakumar Syncfusion Team March 23, 2021 02:34 PM UTC

Hi Jano Moller,

We have fixed the reported “OSM map not render due to authentication problem " issue and the fix is included in our weekly NuGet of March 23, 2021.

NuGet Version: 18.4.0.49

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

Regards,
Sridevi S.     


Loader.
Up arrow icon