fix(geo-import): KML icons stay on their points when zoomed out, and turn by heading as before

Cesium's KML loader shrank an icon's hot-spot offset with the icon and
turned a heading about the Earth's axis. The drawn pins kept the full
offset at globe distance (up to ~14 px off for the Google Earth pushpin)
and turned about local north, which differs in a tilted view. They now
scale the offset with the icon and turn about the Earth's axis by the
heading.
This commit is contained in:
Sameh Khamis committed 2026-11-14 02:03:26 -08:00
1 parent 7ba15deb5e
commit 91b080a45a
4 files changed
+16 -3

No files matched your search

+2
View File
@@ -274,6 +274,8 @@ function kmlPin(name, style, at, mode) {
course: billboard.course,
pixelOffset: billboard.pixelOffset,
scaleByDistance: KML_ICON_SCALE_BY_DISTANCE,
// Its hot spot's offset shrinks with it, as Cesium's KML icons' did.
offsetScalesByDistance: true,
};
}