mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Bike Share marks its covered cities on the globe
Above the height stations draw at, the layer only said "Fly below 48 km to a covered city" without showing which cities those are. Every system in the registry now has a marker there: a green, white-ringed dot over its city, 5 km up so terrain never hides it, shown only while the layer is on and stations are not drawn. Clicking a marker flies straight down into its city from 20 km, as an explicit camera action through the shell's runNavigation, like News and the weather layers. The markers belong to the layer for picking.
This commit is contained in:
1 parent
09cead6a0e
commit
8fe4be484f
9 files changed
+285
-2
No files matched your search
@@ -158,6 +158,15 @@ export class LayerBindings {
|
||||
});
|
||||
this._weatherShellModules.push(news);
|
||||
}
|
||||
// Bike share flies into a covered city from its marker the same way.
|
||||
const bikeshare = this._dataManager?.layers?.get('bikeshare')?.module;
|
||||
if (typeof bikeshare?.attachShellServices === 'function') {
|
||||
bikeshare.attachShellServices({
|
||||
runNavigation: (navigate) =>
|
||||
this.runImmediateNavigation('bike share', navigate),
|
||||
});
|
||||
this._weatherShellModules.push(bikeshare);
|
||||
}
|
||||
}
|
||||
|
||||
_persistAwarenessSelection(event, cleared = false) {
|
||||
|
||||
Reference in new issue
Block a user