A Pen by Max Tobias Weber on CodePen.
Created
May 31, 2021 13:48
-
-
Save cioddi/80a29853a9e1c1b245ca18372d9359c9 to your computer and use it in GitHub Desktop.
MapLibre Workshop - Basiskarte
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
<html> | |
<head> | |
<title>Einführung in die Entwicklung mit MapLibre-gl.js</title> | |
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script> | |
<link href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="map"></div> | |
</body> | |
</html> |
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
var map = new maplibregl.Map({ | |
container: "map", | |
style: | |
"https://wms.wheregroup.com/tileserver/style/osm-bright.json", | |
center: [8.834592013747578,47.22717974350441], | |
zoom: 9 | |
}); |
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
body { | |
margin: 0; | |
padding: 0; | |
} | |
#map { | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment