<template>
    <!-- TO DO need someone to make map fuctional properly -->
    <!--don't know why height auto didn't work so i write 1117px for temporary -->
    <ol-map
    :loadTilesWhileAnimating="true"
    :loadTilesWhileInteracting="true"
    style=
    "
      height: 100%;
      width: 100%;
      position: fixed; 
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
    "
  >
    <ol-view
      ref="view"
      :center="center"
      :rotation="rotation"
      :zoom="zoom"
      :projection="projection"
    />

    <ol-tile-layer>
      <ol-source-osm />
    </ol-tile-layer>
  </ol-map>
</template>



<script setup>
import { ref } from "vue";

const center = ref([100.538611, 13.764722]);
const projection = ref("EPSG:4326");
const zoom = ref(19);
const rotation = ref(0);
</script>