Skip to content

Commit

Permalink
fixes (#69)
Browse files Browse the repository at this point in the history
* Avoid crossorigin problem running locally

* fix providers url if running on http

* Replace dead layer
  • Loading branch information
albfan authored Nov 13, 2023
1 parent d6b9072 commit e4198b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/airports.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<body>
<div id="map"></div>
<link rel="stylesheet" href="../L.Control.Layers.Tree.css" crossorigin=""/>
<link rel="stylesheet" href="../L.Control.Layers.Tree.css"/>
<script src="../L.Control.Layers.Tree.js"></script>

<script type="text/javascript">
Expand All @@ -29,18 +29,18 @@
);

var osmBw = L.tileLayer(
'http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png',
'https://tile.openstreetmap.de/{z}/{x}/{y}.png',
{attribution: '© OpenStreetMap contributors'}
);

var thunderAttr = {attribution: '© OpenStreetMap contributors. Tiles courtesy of Andy Allan'}
var transport = L.tileLayer(
'//{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png',
'https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png',
thunderAttr
);

var cycle = L.tileLayer(
'//{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
thunderAttr
);

Expand Down

0 comments on commit e4198b4

Please sign in to comment.