Files
myprojplanet_vite/src/components/COpenStreetMap/COpenStreetMap.ts

54 lines
886 B
TypeScript
Raw Normal View History

2025-03-01 14:14:43 +01:00
import { tools } from '@tools'
2021-09-16 21:08:02 +02:00
import { useQuasar } from 'quasar'
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
2021-09-16 21:08:02 +02:00
export default defineComponent({
name: 'COpenStreetMap',
props: {
title: {
type: String,
required: true,
},
coordinates: {
type: String,
required: false,
default: '',
},
coord_big: {
type: String,
required: false,
default: '',
},
urlmap: {
type: String,
required: false,
default: '',
},
imgmap: {
type: String,
required: false,
default: '',
},
},
setup(props, { emit }) {
const $q = useQuasar()
const { t } = useI18n()
2021-09-16 21:08:02 +02:00
function mywidth() {
return tools.getwidth($q) - 20
}
function myheight() {
return 450
}
return {
mywidth,
myheight,
t,
2021-09-16 21:08:02 +02:00
}
}
})