0
Zugriff habe ich diese Komponente innerhalb VUE:einen ID-Tag innerhalb einer vue Komponente
<template>
<div class="col-md-6">
<div id="GISMap" v-el:map></div>
</div>
</template>
<script>
import GoogleMaps from '../mixins/GoogleMaps.js';
export default {
mixins: [GoogleMaps],
data() {
return {
initialLocation: ''
}
},
events: {
MapsApiLoaded: function(data) {
this.$set('initialLocation', this.createInitialLocation(48.184845, 11.252553));
initGISMap(this.$el.map, this.initialLocation);
}
}
}
</script>
Jetzt möchte ich GISMap
die ID passieren in der Vorlage in meine initGISMap
Funktion definiert, so dass die Karte erstellt werden kann. Aber wie gebe ich dieses Tag richtig?