Skip to content

Instantly share code, notes, and snippets.

@cioddi
Created May 31, 2021 13:48
Show Gist options
  • Save cioddi/80a29853a9e1c1b245ca18372d9359c9 to your computer and use it in GitHub Desktop.
Save cioddi/80a29853a9e1c1b245ca18372d9359c9 to your computer and use it in GitHub Desktop.
MapLibre Workshop - Basiskarte
<html>
<head>
<title>Einführung in die Entwicklung mit MapLibre-gl.js</title>
<script src="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.css" rel="stylesheet" />
</head>
<body>
<div id="map"></div>
</body>
</html>
var map = new maplibregl.Map({
container: "map",
style:
"https://wms.wheregroup.com/tileserver/style/osm-bright.json",
center: [8.834592013747578,47.22717974350441],
zoom: 9
});
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