Route fly-over playground

A camera that flies a mountain route on a loop, over 3D terrain, with the route replanned from two search boxes

View on GitHub
Flyover plugin 0.1.2Landmarks 3D plugin 0.3.2Map effects plugin 0.4.2Public previewSDK 1.0.0

The camera flies the arrow up the Grand St Bernard pass as the page loads, keeping the road ahead in frame.

  • RouteFlyover animates the camera from the route alone, and setRoute moves it onto a replanned one.
  • It aims at the next guidance instruction, so the view turns into a bend before reaching it.
  • The arrow sits lower on screen as the camera tilts, which anchorForPitch derives and setCamera retunes mid-flight.
  • TerrainModule raises the relief, and the camera pulls back where a ridge would hide the road. Buildings3D and GLSurfaces stand on it once toggled on.

Related examples