From a5f8f387761db4bfafc9477d4ba919af7f4fb33d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 27 Jul 2020 22:51:23 +0200 Subject: [PATCH] map-click-handler: Use `setPosition()` after adding overlay to the map --- ember/app/components/map-click-handler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ember/app/components/map-click-handler.js b/ember/app/components/map-click-handler.js index 30e4b933e9..09d4acff7a 100644 --- a/ember/app/components/map-click-handler.js +++ b/ember/app/components/map-click-handler.js @@ -35,8 +35,11 @@ export default class MapClickHandler extends Component { } @action addOverlay(element) { - this.overlay = new Overlay({ element, position: this.overlayPosition }); + this.overlay = new Overlay({ element }); this.args.map.addOverlay(this.overlay); + + // see https://github.com/openlayers/ol-cesium/issues/679 + this.overlay.setPosition(this.overlayPosition); } @action removeOverlay() {