mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Retain the Nepal locator presentation and draw it on either globe
This commit is contained in:
1 parent
605b9490f3
commit
811bcaff85
11 files changed
+409
-57
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import * as geo from '../../../geo/index.js';
|
||||
import { Color } from 'three';
|
||||
import { isPointerFree } from '../../../data/inputOwnership.js';
|
||||
import {
|
||||
featureLabel,
|
||||
@@ -201,7 +200,7 @@ export function createNavaraCables(engine, native, host) {
|
||||
layer.on('featureUpdated', ({ evaluator }) =>
|
||||
evaluator.evaluate(({ properties }) => {
|
||||
const css = properties?.color ?? BASE_CABLE_COLOR;
|
||||
if (!colors.has(css)) colors.set(css, new Color(css));
|
||||
if (!colors.has(css)) colors.set(css, new native.NavaraColor().setStyle(css));
|
||||
return { color: colors.get(css) };
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user