initial commit
This commit is contained in:
commit
e87043f328
25
index.html
Normal file
25
index.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>openfreemap.org maplibre-gl example</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
||||
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 100%; height: 500px"></div>
|
||||
<script>
|
||||
const center = [11.4020009, 47.2686592];
|
||||
const map = new maplibregl.Map({
|
||||
style: 'https://tiles.openfreemap.org/styles/bright',
|
||||
center: center,
|
||||
zoom: 17.5,
|
||||
container: 'map',
|
||||
});
|
||||
const marker = new maplibregl.Marker({color: '#ffb537'})
|
||||
.setLngLat(center)
|
||||
.addTo(map);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
1
maplibre-gl.css
Normal file
1
maplibre-gl.css
Normal file
File diff suppressed because one or more lines are too long
59
maplibre-gl.js
Normal file
59
maplibre-gl.js
Normal file
File diff suppressed because one or more lines are too long
1
style-bright
Normal file
1
style-bright
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user