Show / Hide Table of Contents

Constructor MapPoint

MapPoint(Double, Double)

Initializes a new instance of the MapPoint class.

Declaration
public MapPoint(double x, double y)
Parameters
Type Name Description
System.Double x

x

System.Double y

y

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Change viewpoint: Set the map view to a new viewpoint.
Convex hull list: Generate convex hull polygon(s) from multiple input geometries.
Cut geometry: Cut a geometry along a polyline.

MapPoint(Double, Double, SpatialReference)

Initializes a new instance of the MapPoint class.

Declaration
public MapPoint(double x, double y, SpatialReference spatialReference)
Parameters
Type Name Description
System.Double x

x

System.Double y

y

SpatialReference spatialReference

Spatial Reference

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Create, delete, and update features: Add, delete, and update features (geometry and attributes) in a feature layer.
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.

MapPoint(Double, Double, Double)

Initializes a new instance of the MapPoint class with an x, y, z and a null spatial reference.

Declaration
public MapPoint(double x, double y, double z)
Parameters
Type Name Description
System.Double x

The x-coordinate for the map point.

System.Double y

The y-coordinate for the map point.

System.Double z

The z-value for the map point.

Remarks

The minimum z-value is -6,356,752 meters, which is the approximate radius of the earth (the WGS 84 datum semi-minor axis). The maximum z-value is 55,000,000 meters.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Densify and generalize: A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals.
Line of sight (location): Perform a line of sight analysis between two points in real time.

MapPoint(Double, Double, Double, SpatialReference)

Initializes a new instance of the MapPoint class with an x, y, z and spatial reference.

Declaration
public MapPoint(double x, double y, double z, SpatialReference spatialReference)
Parameters
Type Name Description
System.Double x

The x-coordinate for the map point.

System.Double y

The y-coordinate for the map point.

System.Double z

The z-value for the map point.

SpatialReference spatialReference

The spatial reference of the map point.

Remarks

The minimum z-value is -6,356,752 meters, which is the approximate radius of the earth (the WGS 84 datum semi-minor axis). The maximum z-value is 55,000,000 meters.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Choose camera controller: Control the behavior of the camera in a scene.
Feature layer extrusion: Extrude features based on their attributes.
In This Article
Back to top Copyright © 2022 Esri.