OSM throws an Access Blocked error with Tile Layer in Syncfusion sample

I downloaded from https://github.com/syncfusion/maui-demos.git , upgraded the packages for the map sample with Tile Layer but it throws an error Access Blocked. Can you replicate that?

Thank you


Attachment: SampleBrowser.Maui.Maps_7e159f06.zip

9 Replies

AJ Arul Jenith Berkmans Syncfusion Team July 22, 2026 01:48 PM UTC

Hi George DAlessio,

 

We were able to reproduce the reported scenario. Based on our findings, the issue appears to be related to recent changes in the OpenStreetMap (OSM) service and its usage policies, which have impacted the behavior observed in the application.

 

Our team is currently evaluating alternative open-source options and potential workarounds to address this scenario. As this requires additional analysis and validation, we will need more time to determine the most appropriate resolution.

 

In parallel, we are also exploring whether there are any available channels to engage with the OpenStreetMap provider directly to better understand the service changes and identify any possible options for resolving or mitigating the issue.

 

We will continue our investigation and provide further updates as soon as we have additional information to share.

 

Thank you for your patience and understanding.

 

Regards,

ArulJenith B.



GD George DAlessio July 22, 2026 03:29 PM UTC

Thank you for looking into this. Without an alternative or potential workarounds the developer work with SfMap and OSM is stopped.

Any prompt help will be appreciated.

Thanks



AJ Arul Jenith Berkmans Syncfusion Team July 23, 2026 01:21 PM UTC

Hi George DAlessio,

 

As mentioned earlier, this issue appears to be related to recent OpenStreetMap (OSM) tile usage policy changes. OpenStreetMap now requires applications accessing its tile servers to provide appropriate identification information (such as a valid User-Agent header). Since the map tile requests generated by the current implementation do not include the required header, the OSM servers are blocking the requests and displaying the following message:

 

"Access blocked. App is not following the tile usage policy of OpenStreetMap's volunteer-run servers."

 

As a temporary workaround, you can use reflection to access the internal HttpClient instance and provide the required request headers, including a valid User-Agent.

 

public MainPage()
{
    InitializeComponent();

var field = typeof(MapTileLayer).GetField("httpClient", BindingFlags.Instance | BindingFlags.NonPublic);

if (field != null)
    {
        field.SetValue(layer, CreateHttpClient());
    }
}

private HttpClient CreateHttpClient()
{
    var httpClient = new HttpClient();
    httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "text/html,application/xhtml+xml,*/*");

//Please add your app name and website or contact

httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "<App_Name>/1.0 (https://www.syncfusion.com/)");
           
    httpClient.DefaultRequestHeaders.CacheControl = new CacheControlHeaderValue
    {
        NoCache = true,
        NoStore = true,
        MaxAge = TimeSpan.Zero,
        MustRevalidate = true
    };

return httpClient;
}

 

We have logged this issue as a bug report and are currently working on providing a proper solution.

 

You can track the status of this report through the following link: https://www.syncfusion.com/feedback/75015/openstreetmap-tile-access-block-issue-in-sfmaps

 

Our team is actively investigating the most appropriate fix, and we are planning to include the resolution in the upcoming weekly release scheduled for August 4, 2026,

 

Please let us know if you have any questions or need assistance implementing the workaround.

 

Regards,

ArulJenith B.



GD George DAlessio July 23, 2026 07:32 PM UTC

I tried your workaround but I still get the same blocked message even with different variations on User-Agent and valid emails.

I'm attaching a little sample just in case I made a mistake on the implementation.

Thanks


Attachment: TestAccessBlockedMap_802404ff.zip


AJ Arul Jenith Berkmans Syncfusion Team July 24, 2026 06:58 AM UTC

Hi  George DAlessio,

 

We have validated the provided sample and confirmed that the map renders successfully on our side without displaying any blocked-message warnings.

 

We have shared the complete sample for your review. Before running the sample, please make sure that the User-Agent includes valid contact information or a website URL, as required.

 

If you require any further assistance, please do not hesitate to contact us.

 

Regards,

Arul Jenith B.


Attachment: AccessBlockedMapSample_5b8a1c0a.zip


GD George DAlessio July 24, 2026 07:57 PM UTC

After Wipe Data from the emulator I was using your workaround works. It was probably using the cached tiles.

Thanks for your help



BP Baranibharathi Pandian Syncfusion Team July 27, 2026 06:45 AM UTC

Hi George DAlessio,

 

You're most welcome.

 

The fix has been scheduled for an upcoming weekly release planned for August 4, 2026. You can track the status and progress of this report using the following link:

 

https://www.syncfusion.com/feedback/75015/openstreetmap-tile-access-block-issue-in-sfmaps

 

Please feel free to reach out if you have any further questions. We are always happy to assist you.

 

Regards,

Baranibharathi P.



MU Muhammad Usman August 5, 2026 08:00 AM UTC

Hi Syncfusion Team,

Could you please provide an estimated timeline for the next release that includes this fix? The fix was originally scheduled for release on 4th August, but we haven't seen the new package published yet.



BP Baranibharathi Pandian Syncfusion Team August 5, 2026 12:51 PM UTC

Hi George DAlessio,

 

We are glad to announce that the fix for "OpenStreetMap Tile Access Block Issue in SfMaps" has been included in our Essential Studio® 2026 Volume 2 Service Pack Release v34.2.2 and is available for download from the following link:

 

Essential Studio® 2026 Volume 2... | Announcements Forums | Syncfusion

 

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,

Baranibharathi P.


Loader.
Up arrow icon