Scene symbols

View inWPFUWPFormsiOSAndroid
View on GitHub

Show various kinds of 3D symbols in a scene.

Image of scene symbols

Use case

You can programmatically create different types of 3D symbols and add them to a scene at specified locations. You could do this to call attention to the prominence of a location.

How to use the sample

When the scene loads, note the different types of 3D symbols that you can create.

How it works

  1. Create a graphics overlay.
  2. Create various simple marker scene symbols by specifying different styles and colors, and a height, width, depth, and anchor position of each.
  3. Create a graphic for each symbol.
  4. Add the graphics to the graphics overlay.
  5. Add the graphics overlay to the scene view.

Relevant API

  • SceneSymbol.AnchorPosition
  • SimpleMarkerSceneSymbol
  • SimpleMarkerSceneSymbol.Style

About the data

This sample shows arbitrary symbols in an empty scene with imagery basemap.

Tags

3D, cone, cube, cylinder, diamond, geometry, graphic, graphics overlay, pyramid, scene, shape, sphere, symbol, tetrahedron, tube, visualization

Sample Code

SceneSymbols.xamlSceneSymbols.xaml.cs
         
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntimeXamarin.Samples.SceneSymbols.SceneSymbols">
  <Grid>
    <esriUI:SceneView x:Name="MySceneView"/>
  </Grid>
</ContentPage>

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