-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature: support for tiled map engine
- Loading branch information
1 parent
30d89dc
commit b28a90d
Showing
7 changed files
with
309 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<head> | ||
<style> body { margin: 0; } </style> | ||
|
||
<script type="importmap">{ "imports": { | ||
"react": "https://esm.sh/react", | ||
"react-dom": "https://esm.sh/react-dom/client" | ||
}}</script> | ||
|
||
<!-- <script type="module">import * as React from 'react'; window.React = React;</script>--> | ||
<!-- <script src="../../dist/react-globe.gl.js" defer></script>--> | ||
</head> | ||
|
||
<body> | ||
<div id="globeViz"></div> | ||
|
||
<script src="//unpkg.com/@babel/standalone"></script> | ||
<script type="text/jsx" data-type="module"> | ||
import Globe from 'https://esm.sh/react-globe.gl?external=react'; | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom'; | ||
|
||
createRoot(document.getElementById('globeViz')).render( | ||
<Globe | ||
globeTileEngineUrl={(x, y, l) => `https://tile.openstreetmap.org/${l}/${x}/${y}.png`} | ||
/> | ||
); | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.