mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
41 lines
966 B
HTML
41 lines
966 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;
|
|
}
|
|
#map {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
.control-panel {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
max-width: 320px;
|
|
background: #fff;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
|
padding: 12px 24px;
|
|
margin: 20px;
|
|
font-size: 13px;
|
|
line-height: 2;
|
|
color: #6b6b76;
|
|
text-transform: uppercase;
|
|
outline: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="map"></div>
|
|
</body>
|
|
<script type="module" type="text/javascript">
|
|
import {renderToDom} from './src/app.tsx';
|
|
renderToDom(document.getElementById('map'));
|
|
</script>
|
|
</html>
|