16 lines
485 B
HTML
16 lines
485 B
HTML
<script src="https://labs.geomatico.es/maplibre-cog-protocol/dist/index.js"></script>
|
|
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css"
|
|
/>
|
|
<section class="map-container">
|
|
<div id="{{ .Get `id` }}" style="height: 400px"></div>
|
|
<script>
|
|
let map = new maplibregl.Map({
|
|
container: "{{ .Get `id` }}",
|
|
style: "{{ .Get `style` }}",
|
|
});
|
|
</script>
|
|
</section>
|