Map Navigation
Camera Controls
GeoLens uses standard CesiumJS camera controls:
| Input | Action |
|---|---|
| Left click + drag | Rotate / tilt the globe |
| Right click + drag | Zoom in or out |
| Scroll wheel | Zoom in or out |
| Middle click + drag | Tilt and orbit around the point under the cursor. Also lets the camera pass below the ground (see Underground View) |
| Double-click | Zoom to the clicked location |
| Ctrl + left drag | Same tilt and orbit as middle drag, and the same underground behavior. This is Cesium's own gesture and the way to orbit on a Mac trackpad |
Underground View
Cesium normally stops the camera at the ground. While you hold an orbit gesture (Ctrl + left drag or middle drag) that stop is turned off, so you can swing the camera below the surface. Once the camera is below ground it stays there when you let go, and ground collision comes back as soon as it is above ground again.
While underground:
- A warm tint covers the scene and a badge reads "Underground, N m below surface", so it is obvious you are under the map.
- Back-face culling is turned off on the 3D tilesets. Photogrammetry tiles are hollow shells, so with culling on you would see straight through every wall and roof. Off, you see the inside of the shell instead.
"Ground" is the terrain when the globe is visible, otherwise the sampled 3D-tile surface (the globe is hidden on worlds that render from 3D Tiles). It works on Earth with the Google 3D Tileset or OSM 3D Buildings, and on Mars and Moon. There is no data below the surface: you are looking at the underside of the terrain and buildings, not at pipes or geology.
Automatic Camera Flying
Many features automatically fly the camera to a relevant location when activated:
| Feature | Flies To |
|---|---|
| NY Street Cameras | New York City area |
| Emergency Management events | Event location (on click) |
| CO₂ Sensors | Central Florida |
| Boundary Selection | Selected state or county |
| River Gauges | Gauge location (on click) |
Camera fly animations use viewer.camera.flyTo() or viewer.flyTo() with a configurable duration.
Map Maximize
Click the ⛶ button in the top-right of the map to expand the Cesium view to full-screen width (the sidebar is hidden). A small ☰ restore button appears in the bottom-left to bring the sidebar back.
Info Boxes
Clicking on most map entities (cameras, sensors, events, gauges) opens an info box, a floating panel positioned near the top-right of the map. Info boxes display details and interactive controls (charts, links, buttons). Only one info box is visible at a time; opening a new one closes the previous.
Info boxes can be closed by:
- Clicking the
×button on the info box - Clicking elsewhere on the map (Cesium's default entity deselect)
Map Base Layer
The default imagery is Cesium's built-in Bing Maps aerial. The base layer changes are reflected in weather and AQI panel updates (those panels reverse-geocode the current camera center).
Weather & AQI Auto-Update
When the Weather or Air Quality panels are open, panning the map triggers an automatic update (debounced to 1 second) to reflect the new map center location. The current center is extracted with:
const ray = viewer.camera.getPickRay(
new Cesium.Cartesian2(canvas.clientWidth / 2, canvas.clientHeight / 2)
);
const position = viewer.scene.globe.pick(ray, viewer.scene);