From 90638f429745f927cc048ef4c2d9bdf9146c0b84 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 6 Jan 2021 02:00:02 +0000 Subject: [PATCH] Update chat balloon position on projection change --- src/components/map/marker/PlayerMarker.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/map/marker/PlayerMarker.vue b/src/components/map/marker/PlayerMarker.vue index ac33bf7..40bc15d 100644 --- a/src/components/map/marker/PlayerMarker.vue +++ b/src/components/map/marker/PlayerMarker.vue @@ -233,7 +233,10 @@ export default defineComponent({ } }, currentProjection() { - this.marker.setLatLng(this.currentProjection.locationToLatLng(this.player.location)); + const latLng = this.currentProjection.locationToLatLng(this.player.location); + + this.marker.setLatLng(latLng); + this.chatBalloon.setLatLng(latLng); } },