Merge pull request #22 from 0hAodha/responsivemap
make map size responsive to viewport size
This commit is contained in:
@ -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 />
|
||||
|
Reference in New Issue
Block a user