Create simple geometry types.
Geometries are used to represent real world features as vector GIS data. Points are used to mark specific XY locations, such as landmarks and other points of interest. Polylines are made up of 2 or more XY vertices and can be used to mark roads, flight paths, or boundaries. Polygons are made up of 3 or more XY vertices and can be used to represent a lake, country, or a park. Geometries can be stored as features in a database, displayed as Graphics in a map, or used for performing spatial analysis with
GeometryEngine or a
Pan and zoom freely to see the different types of geometries placed onto the map.
- Use the constructors for the various simple
- To display the geometry, create a
Graphicpassing in the geometry, and a
Symbolappropriate for the geometry type.
- Add the graphic to a graphics overlay and add the overlay to a map view.
A geometry made of multiple points usually takes a
PointCollection as an argument or is created through a builder.
area, boundary, line, marker, path, shape
<?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" xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" x:Class="ArcGISRuntime.Samples.CreateGeometries.CreateGeometries"> <Grid> <esriUI:MapView x:Name="MyMapView"/> </Grid> </ContentPage>