Hey everyone!
I’m currently building a Google Earth-like system using Unreal Engine 5 + Cesium for Unreal, and I’ve already got the 3D globe rendering successfully using Cesium ion and the Google Maps API for terrain/imagery.
The next big feature I want to implement is a Search Bar, just like in Google Earth.
Feature Description:
The idea is:
- User types a location name (like “New York” or “Mount Everest”)
- The system uses Google Maps API (Geocoding) to get the coordinates
- Then the globe rotates, tilts, and zooms smoothly to that location
- Optionally, show a marker/pin and a small popup with location name/info
Implementation Goal:
- I want to build this entirely in C++ (though if you’ve done it in Blueprints, I’d love to see that too!)
- I’d like to create a custom search widget (UUserWidget or Slate), connect it to a C++ class that handles:
- Calling the API
- Parsing the coordinates (lat/lon)
- Using CesiumGeoreference and CesiumGlobeAnchor to move the camera or player pawn to the desired place
What I’m Looking For:
- Has anyone here built this kind of feature already?
- Any code snippets, logic flow, or example projects would be super helpful!
- How did you handle the rotation/zoom of the camera in 3D smoothly?
I’m still new to Cesium & Unreal Engine C++ so even basic guidance is appreciated
Thanks in advance!