openlayers / ol-cesium

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

perf(text-offset): Unidirectional offset #1125

Closed XiaofengZeng closed 6 months ago

XiaofengZeng commented 8 months ago

There is an OpenLayers vector layer style that has both image and text attributes, and the text cannot overlap with the image. So, it is necessary to set a one-way offsetY for the text. However, when synchronizing to OLCesium, the corresponding Cesium.Label instance was not offset. Therefore, I adjusted the relevant code for the offset attribute to support one-way offset for the text.

gberaudo commented 6 months ago

Thanks again @XiaofengZeng .