This sample uses the geodesicBufferOperator to create geodesic buffers around the pointer (mouse/touch) location as a user moves the pointer across the view.
How it works
The sample listens to pointer-move
and click
events both on SceneView and MapView. If the b
key is tapped, a user can click on or move the pointer around the SceneView or the MapView to create a geodesic buffer around the pointer location.
view2d.on("pointer-move", (event) => {
createBuffer(event, view2d);
});