-fix map style
-add center to อนุสาวรีย์ชัยสมรภูมิ
This commit is contained in:
NekoVari 2023-07-29 02:10:58 +07:00
parent 4fddd3d080
commit 8ad3ef95d8

View file

@ -4,8 +4,16 @@
<ol-map <ol-map
:loadTilesWhileAnimating="true" :loadTilesWhileAnimating="true"
:loadTilesWhileInteracting="true" :loadTilesWhileInteracting="true"
style="height: 1117px;" style=
"
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
"
> >
<ol-view <ol-view
ref="view" ref="view"
@ -22,11 +30,12 @@
</template> </template>
<script setup> <script setup>
import { ref } from "vue"; import { ref } from "vue";
const center = ref([40, 40]); const center = ref([100.538611, 13.764722]);
const projection = ref("EPSG:4326"); const projection = ref("EPSG:4326");
const zoom = ref(8); const zoom = ref(19);
const rotation = ref(0); const rotation = ref(0);
</script> </script>