On this page
Capture map and splats events
This example demonstrates how to interact with the base map and capture events for photorealistic splats objects. You’ll learn how listen for specific splats or maps events like load, update, mouseover, and click.
Learn more
- Global Map Events: Use
map.on('click', ...)to capture geographic coordinates when a user clicks on the map. - Splats Specific Events: The map emits events prefixed with
splatmodel:when interacting with these 3D objects:splatmodel:load: Triggered when the model is fully loaded.splatmodel:update: Triggered during model updates or LOD changes.splatmodel:mouseover/splatmodel:mouseout: Capture when the mouse enters or leaves the object’s area.splatmodel:click: Detect direct user interaction with the 3D model.
Check out the MapTiler GeoSplats SDK JS reference