Events

Events

onClick

The callback function passed here becomes the onclick handler for clicks within the AerialSphere frame.

onMarkerClick

The callback function passed here handles clicks on user-defined markers. See addMarker for documentation on creating markers.

onPolygonClick

The callback function passed here handles clicks on user-defined polygons. See addPolygon https://aerialsphere.atlassian.net/wiki/spaces/CPD/pages/1734770689/addPolygon?atlOrigin=eyJpIjoiNjhmNGY4OTI1NjlkNGFlNWI0Y2U3NWM2MmRhYTcyYTUiLCJwIjoiYyJ9 for documentation on creating polygons.

onViewChange

The callback function passed here is called whenever the view is changed by the user within the sphere view. User-changed views happen when the user adjusts pan or tilt with their mouse, or when they zoom in or out.