// Code in component map
this.coords.map((markers) => {
const marker = new H.map.Marker({lat: markers[0], lng: markers[1]});
map.addObject(marker);
})
// Props
props: {
coords: [],
}
//Place where used my component
<MapComp
:coords= getTrips></MapComp>
computed: {
getTrips() {
return this.$store.getters.locationsTracking
}
}