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/micromobility-navigation/src/views/Home.vue

33 lines
743 B
Vue
Raw Normal View History

2023-07-15 08:03:08 +00:00
<template>
2023-07-15 10:52:21 +00:00
<!-- <img src="https://cdn.discordapp.com/attachments/933187220217663570/1129696534863286353/image.png.png" alt="placeholder for map"
style=" display: block;
margin-left: auto;
margin-right: auto;"> -->
<ol-map
:loadTilesWhileAnimating="true"
:loadTilesWhileInteracting="true"
style="height: 1117px;"
>
<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>