<template>
  
  <searchbar/>

    <ol-map
    :loadTilesWhileAnimating="true"
    :loadTilesWhileInteracting="true"
    style=
    "
      height: 100%;
      width: 100%;
      position: fixed; 
      
    "
  >
    <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 searchbar from '@/components/searchbar.vue';
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>