Skip to content

Commit

Permalink
Add crossorigin to ISS position demo
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed May 31, 2022
1 parent f55d313 commit efb6a0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions www/gallery/iss_position.html
Expand Up @@ -12,12 +12,12 @@

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
crossorigin="anonymous"/>

<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
crossorigin="anonymous"></script>

<script type="text/python" src="show_source.py"></script>
<style>
Expand Down Expand Up @@ -64,7 +64,8 @@ <H1>Position of the International Space Station</H1>
# Create world map
mymap = leaflet.map('mapid').setView([51.505, -0.09], 1)
leaflet.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
'attribution': '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
'attribution': '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
'crossOrigin': 'anonymous'
}).addTo(mymap);

async def show_iss_pos():
Expand Down

0 comments on commit efb6a0f

Please sign in to comment.