Update chat balloon position on projection change

This commit is contained in:
James Lyne 2021-01-06 02:00:02 +00:00
parent 7a4207d946
commit 90638f4297

View File

@ -233,7 +233,10 @@ export default defineComponent({
} }
}, },
currentProjection() { 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);
} }
}, },