Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for cursor-issues #91

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/map/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ const inputCoordsChanged = (coords) => {
})

overlay.setPosition([coords[0], coords[1]])
olMap.value.addOverlay(overlay)
//ugly workaround caused by lack of lifecycle coherance between vue components
setTimeout(() => {
olMap.value.addOverlay(overlay)
}, 150)
}
}

Expand Down
7 changes: 3 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import
{ createApp} from 'vue'
import { createApp } from 'vue'

import css from '@dataforsyningen/css'
import '@dataforsyningen/css'
import store from '@/store'
import router from '@/router'
import App from './App.vue'
Expand All @@ -21,7 +20,7 @@ app.config.performance = (import.meta.env.NODE_ENV !== 'production')
app.config.globalProperties.$store = store

app
.use(css)
.use('@dataforsyningen/css')
.use(router)
.use(store)

Expand Down