Geometry operator - geodesic buffers

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.

Use dark colors for code blocksCopy
1
2
3
view2d.on("pointer-move", (event) => {
  createBuffer(event, view2d);
});

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.