This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/views/Home.vue

32 lines
674 B
Vue
Raw Normal View History

2023-07-15 08:03:08 +00:00
<template>
2023-07-15 10:55:52 +00:00
<!-- TO DO need someone to make map fuctional properly -->
<!--don't know why height auto didn't work so i write 1117px for temporary -->
2023-07-15 10:52:21 +00:00
<ol-map
:loadTilesWhileAnimating="true"
:loadTilesWhileInteracting="true"
style="height: 1117px;"
2023-07-15 10:55:52 +00:00
2023-07-15 10:52:21 +00:00
>
<ol-view
ref="view"
:center="center"
:rotation="rotation"
:zoom="zoom"
:projection="projection"
/>
<ol-tile-layer>
<ol-source-osm />
</ol-tile-layer>
</ol-map>
2023-07-15 08:03:08 +00:00
</template>
2023-07-15 10:52:21 +00:00
2023-07-15 08:03:08 +00:00
<script setup>
2023-07-15 10:52:21 +00:00
import { ref } from "vue";
const center = ref([40, 40]);
const projection = ref("EPSG:4326");
const zoom = ref(8);
const rotation = ref(0);
2023-07-15 08:03:08 +00:00
</script>