removed option to save map as image

pull/69/head
tomasz t 2022-04-01 01:53:46 +02:00
rodzic 1d232c305d
commit 98c86e0d43
2 zmienionych plików z 1 dodań i 9 usunięć

Wyświetl plik

@ -199,14 +199,7 @@
</svg>
Excel</a>
<hr class="my-3">
<button class="button is-success has-text-weight-light" onclick="window.open(map.getCanvas().toDataURL())">
<svg class="icon mr-2" style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="currentColor" d="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z" />
</svg> Zapisz aktualny widok mapy jako obraz
</button>
<p class="has-text-weight-light is-size-7">
(otwiera nowe okno)
</p>
<!-- tu wstawić legendę -->
</div>
</div>

Wyświetl plik

@ -13,7 +13,6 @@ const map = new maplibregl.Map({
"maxZoom": 19,
"maxPitch": 0,
"dragRotate": false,
"preserveDrawingBuffer": true,
"style": "./map_style/style.json"
});