React-leaflet: Failed to load resource

Created on 10 Feb 2020  路  2Comments  路  Source: PaulLeCam/react-leaflet

Bug report

Before opening an issue, make sure to read the contributing guide and understand this is a bug tracker, not a support platform.

Please make sure to check the following boxes before submitting an issue.\
Issues opened without using this template will be closed unless they have a good reason not to follow this template.

  • [X] All peer dependencies are installed: React, ReactDOM and Leaflet.
  • [X] Using a supported version of React and ReactDOM (v16.8.0 minimum).
  • [X] Using the supported version of Leaflet (v1.6.0 minimum) and its corresponding CSS file is loaded.
  • [ ] Using the latest version of React-Leaflet.
  • [X] The issue has not already been reported.
  • [X] Make sure you have followed the quick start guide for Leaflet.
  • [X] Make sure you have fully read the documentation and that you understand the limitations.

Expected behavior

Please describe.

Actual behavior

Please describe.

The map does not load

Steps to reproduce

init map component

Please provide the simplest example possible to reproduce the issue, based on this CodePen.

Most helpful comment

Looks like there's an issue with the tile request to https://{s}.tile.osm.org/{z}/{x}/{y}.png.

It works fine if you change it too

https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

Looks like there have been a few recent changes to open street map DNS. Maybe related, maybe not.

See working code pen here:

https://codepen.io/matta/pen/ExjjVjo

All 2 comments

Looks like there's an issue with the tile request to https://{s}.tile.osm.org/{z}/{x}/{y}.png.

It works fine if you change it too

https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

Looks like there have been a few recent changes to open street map DNS. Maybe related, maybe not.

See working code pen here:

https://codepen.io/matta/pen/ExjjVjo

Thanks, it worked @MatthewAnstey

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diligiant picture diligiant  路  3Comments

mrafei picture mrafei  路  4Comments

kaitlynbrown picture kaitlynbrown  路  3Comments

rolfdalhaug picture rolfdalhaug  路  3Comments

josdejong picture josdejong  路  4Comments