Click or drag to resize

Map Methods

The Map type exposes the following members.

Methods
  NameDescription
Public methodDispose
Disposal of the map. All layers are disposed.
Public methodGeoAsRelToMapView(Point)
Converts a geographic point to a point in WPF units.
Public methodGeoAsRelToMapView(Point, String)
Converts a geographic point to a point in WPF units.
Public methodGetCurrentEnvelope
Gets the bounding box of the visible map section while the map is in animation mode.
Public methodGetCurrentEnvelope(String)
Gets the bounding box of the visible map section while the map is in animation mode.
Public methodGetEnvelope
Gets the anticipated bounding box of the visible map section after the map was in animation mode / the current box while the map is in animation mode.
Public methodGetEnvelope(String)
Gets the anticipated bounding box of the visible map section after the map was in animation mode / the current box while the map is in animation mode. The bounding box coordinates are specified in a coordinate format according the parameter value of spatialReferenceId.
Public methodMouseToGeo(MouseEventArgs)
Converts the click point of the mouse event to a geographic point in WGS84 units. The click point of the mouse is determined relative to the map.
Public methodMouseToGeo(MouseEventArgs, String)
Converts the click point of the mouse event to a geographic point corresponding to the given spatial reference id. The click point of the mouse is determined relative to the map.
Public methodPrintMap
Prints the currently displayed map.
Public methodRelToMapViewAsGeo(Point)
Converts a point from WPF coordinates to a geographic point.
Public methodRelToMapViewAsGeo(Point, String)
Converts a point from WPF coordinates to a geographic point.
Public methodSetEnvelope(MapRectangle)
Centers the map resulting in all elements within the specified rectangle are visible.
Public methodSetEnvelope(MapRectangle, String)
Centers the map, so all elements within the specified rectangle are visible.
Public methodSetMapLocation(Point, Double)
Set the center and zooming level of the map.
Public methodSetMapLocation(Point, Double, String)
Set the center and zooming level of the map.
Public methodSetThemeFromXaml

Sets the current theme from a XAML file provided by the stream. The XAML file must contain a ResourceDictionary on the top level. See the attached XAML files in the demo project.

See the Theming Concept topic for an example.

Top
Extension Methods
  NameDescription
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also