openlayers / ol-cesium

OpenLayers - Cesium integration
http://openlayers.org/ol-cesium/
BSD 2-Clause "Simplified" License
968 stars 321 forks source link

fix: call `handlePositionChanged` later #1160

Closed simonseyock closed 5 months ago

simonseyock commented 5 months ago

This avoids the call to handlePositionChanged before this.parent_ has been set. (cause: https://github.com/openlayers/openlayers/blob/73f4636c85e569c6aca36f2ad478b677b7929872/src/ol/Overlay.js#L208)

And calls it again at the end of the constructor.

Fixes #1159