Merge pull request #22 from 0hAodha/responsivemap

make map size responsive to viewport size
This commit is contained in:
JLennox1
2023-03-02 12:34:35 +00:00
committed by GitHub

View File

@ -23,7 +23,7 @@
</div>
</transition>
<ol-map :loadTilesWhileAnimating="true" :loadTilesWhileInteracting="true" style="height: 1000px">
<ol-map :loadTilesWhileAnimating="true" :loadTilesWhileInteracting="true" style="height: 100vh; width: 100vw">
<ol-view ref="view" :center="center" :rotation="rotation" :zoom="zoom" :projection="projection" />
<ol-tile-layer>
<ol-source-osm />