This commit is contained in:
Wolfgang Huß 2023-01-12 16:56:24 +01:00
parent 739eb20f65
commit 1b75a533d9

View File

@ -188,11 +188,8 @@ export default {
this.markers.isCurrentUserAdded = true this.markers.isCurrentUserAdded = true
} }
if (!this.markers.isUsersAdded && this.currentUser && this.users) { if (!this.markers.isUsersAdded && this.currentUser && this.users) {
console.log('markers.isUsersAdded !!! this.users: ', this.users)
this.users.forEach((user, index) => { this.users.forEach((user, index) => {
console.log('markers.isUsersAdded !!! user index: ', index)
if (user.id !== this.currentUser.id && user.location) { if (user.id !== this.currentUser.id && user.location) {
console.log('markers.isUsersAdded !!! user index if: ', index)
this.markers.array.push( this.markers.array.push(
new mapboxgl.Marker({ new mapboxgl.Marker({
// Wolle: coordinates: this.getCoordinates(user.location), // Wolle: coordinates: this.getCoordinates(user.location),
@ -208,16 +205,8 @@ export default {
this.markers.isUsersAdded = true this.markers.isUsersAdded = true
} }
if (!this.markers.isGroupsAdded && this.groups) { if (!this.markers.isGroupsAdded && this.groups) {
console.log('markers.isGroupsAdded !!! this.groups: ', this.groups)
this.groups.forEach((group, index) => { this.groups.forEach((group, index) => {
console.log('markers.isGroupsAdded !!! group index: ', index)
if (group.location) { if (group.location) {
console.log(
'markers.isGroupsAdded !!! group index if: ',
index,
' location: ',
this.getCoordinates(group.location),
)
this.markers.array.push( this.markers.array.push(
new mapboxgl.Marker({ new mapboxgl.Marker({
// Wolle: coordinates: this.getCoordinates(group.location), // Wolle: coordinates: this.getCoordinates(group.location),