Change a graphic's symbol based on the camera's proximity to it.
The sample starts looking at a plane. Zoom out from the plane to see it turn into a cone. Keeping zooming out and it will turn into a point.
- Create a
GraphicsOverlay
object and add it to aSceneView
object. - Create a
DistanceCompositeSceneSymbol
object. - Create
DistanceSymbolRange
objects specifying aSymbol
and the min and max distance within which the symbol should be visible. - Add the ranges to the range collection of the distance composite scene symbol.
- Create a
Graphic
object with the distance composite scene symbol at a location and add it to the graphics overlay.
- DistanceCompositeSceneSymbol
- Range
- RangeCollection
3D, DistanceCompositeSceneSymbol, DistanceSymbolRange, SimpleMarkerSceneSymbol, graphic