Skip to content

Commit 6ea1489

Browse files
authored
chore(tile-service): Use tile.openstreetmap.org without subdomains (#425)
openstreetmap/operations#737
1 parent 84e55cc commit 6ea1489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/components/Map.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Map(props: MapProps): ReactElement {
5454
return (
5555
<div>
5656
<BaseMap ref={ref} viewport={viewport} id="map" className={styles.map}>
57-
<TileLayer url="//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
57+
<TileLayer url="//tile.openstreetmap.org/{z}/{x}/{y}.png" />
5858
</BaseMap>
5959
</div>
6060
);

docs/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ A basic working example would look like:
7272

7373
const map = L.map('map').setView([51.505, -0.09], 13);
7474

75-
L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
75+
L.tileLayer('//tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
7676

7777
const search = new GeoSearch.GeoSearchControl({
7878
provider: new GeoSearch.OpenStreetMapProvider(),

0 commit comments

Comments
 (0)