mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
33 lines
720 B
HTML
33 lines
720 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset='UTF-8' />
|
|
<title>react-map-gl Example</title>
|
|
<link href="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
#app {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
button {
|
|
position: fixed;
|
|
z-index: 1;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
<script type="module" type="text/javascript">
|
|
import {renderToDom} from './src/app.tsx';
|
|
renderToDom(document.getElementById('app'));
|
|
</script>
|
|
</html>
|