Share via


Windows.UI.Xaml.Controls.Maps Namespace

Defines classes for the Map control. Also defines tile sources and elements that can be placed on a map.

Classes

CustomMapTileDataSource

Provides a source of custom tiles for a MapTileSource. Use this class when you can't use HttpMapTileDataSource or LocalMapTileDataSource. For example, CustomMapTileDataSource supports drawing tiles in memory and returning them as a stream of pixels.

HttpMapTileDataSource

Provides a source of tiles for a MapTileSource. The tiles are fetched by using the HTTP or HTTPS protocol. Note that, as of build 15063, local uris don't work anymore.

LocalMapTileDataSource

Provides a source of tiles for a MapTileSource. The tiles are fetched by using a local protocol such as ms-appdata.

MapActualCameraChangedEventArgs

Provides data for the ActualCameraChanged event.

MapActualCameraChangingEventArgs

Provides data for the ActualCameraChanging event.

MapBillboard

Displays an image that scales and fades in relation to its distance from the ReferenceCamera of the MapBillboard.

MapCamera

Represents the position of a camera to define the view of a map.

MapContextRequestedEventArgs

Provides event data for the MapContextRequested event.

MapControl

Represents a symbolic or photorealistic map of the Earth.

MapControlBusinessLandmarkClickEventArgs

Provides data for the BusinessLandmarkClick event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlBusinessLandmarkPointerEnteredEventArgs

Provides data for the BusinessLandmarkPointerEntered event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlBusinessLandmarkPointerExitedEventArgs

Provides data for the BusinessLandmarkPointerExited event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlBusinessLandmarkRightTappedEventArgs

Provides data for the BusinessLandmarkRightTapped event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlDataHelper

Provides events that indicate the user has clicked on a business location or transit feature.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlTransitFeatureClickEventArgs

Provides data for the TransitFeatureClick event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlTransitFeaturePointerEnteredEventArgs

Provides data for the TransitFeaturePointerEntered event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlTransitFeaturePointerExitedEventArgs

Provides data to the TransitFeaturePointerExited event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapControlTransitFeatureRightTappedEventArgs

Provides data for the TransitFeatureRightTapped event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

MapCustomExperience

Represents a custom experience for the MapControl.

MapCustomExperienceChangedEventArgs

Provides data for the CustomExperienceChanged event.

MapElement

Represents an element displayed on a MapControl.

MapElement3D

Represents a 3D element displayed on a MapControl.

MapElementClickEventArgs

Provides data for the MapElementClick event.

MapElementPointerEnteredEventArgs

Provides data for the MapElementPointerEntered event.

MapElementPointerExitedEventArgs

Provides data for the MapElementPointerExited event.

MapElementsLayer

Represents a collection of map elements to which you can bind data and manipulate independently of other map elements.

MapElementsLayerClickEventArgs

Provides data for the MapElementClick event.

MapElementsLayerContextRequestedEventArgs

Provides event data for the MapContextRequested event.

MapElementsLayerPointerEnteredEventArgs

Provides data for the MapElementPointerEntered event.

MapElementsLayerPointerExitedEventArgs

Provides data for the MapElementPointerExited event.

MapIcon

Displays an image such as a pushpin with optional text on a MapControl. Use the default image or provide a custom image.

MapInputEventArgs

Provides data about user input for the MapTapped, MapDoubleTapped, and MapHolding events of the MapControl.

MapItemsControl

Contains a collection of XAML controls to be displayed on a MapControl.

MapLayer

Represents a collection of map data to which you can bind data and manipulate independently of other map types of map data.

MapModel3D

Represents a 3D object to show on a map. A MapModel3D is primarily used in conjunction with MapElement3D.

MapPolygon

Represents a polygon on a MapControl.

MapPolyline

Represents a polyline on a MapControl.

MapRightTappedEventArgs

Provides data for the MapRightTapped event.

MapRouteView

Displays a MapRoute on a MapControl.

MapScene

Represents a view of a map.

MapStyleSheet

Represents a set of rules that define the style of the map in a map control. This class provides methods to:

  1. Retrieve common base map styles.
  2. Load custom sheets through ParseFromJson and TryParseFromJson. To learn more about JSON style sheets, see Map stylesheet reference.
  3. Combine multiple sheets, where later sheets override earlier sheets, using the Combine method. Usually a common base map style is be combined with custom JSON to create a customized map style.
MapStyleSheetEntries

Provides the names of JavaScript Object Notation (JSON) supported style entries in the map style sheet.

MapStyleSheetEntryStates

Provides the names of the supported style entry states of a map style sheet. These states map to state-specific styles defined in the map's style sheet.

MapTargetCameraChangedEventArgs

Provides data for the TargetCameraChanged event.

MapTileBitmapRequest

Represents a bitmap request for a tile for a CustomMapTileDataSource.

MapTileBitmapRequestDeferral

Represents a deferral that can be used by an app to respond asynchronously to a bitmap request for a tile.

MapTileBitmapRequestedEventArgs

Provides data for the CustomMapTileDataSource.BitmapRequested event.

MapTileDataSource

Provides a source of tiles for a MapTileSource. This class serves as the base class for HttpMapTileDataSource, LocalMapTileDataSource, and CustomMapTileDataSource.

MapTileSource

Represents a source of tiles to overlay on the MapControl.

MapTileUriRequest

Represents a Uri request for a tile for an HttpMapTileDataSource or a LocalMapTileDataSource.

MapTileUriRequestDeferral

Represents a deferral that can be used by an app to respond asynchronously to a Uri request for a tile.

MapTileUriRequestedEventArgs

Provides data for the HttpMapTileDataSource.UriRequested event and the LocalMapTileDataSource.UriRequested event.

StreetsideExperience

Represents a custom map experience that provides a street-level view of a geographic location.

StreetsidePanorama

Represents a panoramic view of a geographic location from a street-level perspective.

Structs

MapZoomLevelRange

Specifies the minimum and maximum zoom level for a MapTileSource. This structure is used by the ZoomLevelRange property of a MapTileSource.

Enums

MapAnimationKind

Specifies the animation to use when you change the view of the map. For example, you can specify animation when calling the TrySetViewAsync or TrySetViewBoundsAsync methods.

MapCameraChangeReason

Specifies the reason the position of the map's camera has changed.

MapColorScheme

Specifies the ColorScheme of the MapControl.

MapElementCollisionBehavior

Specifies the behavior of a MapIcon when it collides with other map features due to zoom level.

MapInteractionMode

Specifies if the map responds to a touch gesture and if the corresponding UI control appears on the map.

MapLoadingStatus

Specifies the LoadingStatus of the MapControl.

MapModel3DShadingOption

Specifies the type of shading that you want to appear for 3D objects.

MapPanInteractionMode

Specifies if the pan gesture is recognized on the map.

MapProjection

Specifies how to transform the latitudes and longitudes of the map

MapStyle

Specifies the Style of the MapControl.

MapTileAnimationState

Specifies the AnimationState of the MapTileSource.

MapTileLayer

Specifies the Layer type of a MapTileSource.

MapVisibleRegionKind

Indicates the kind of visible region.

MapWatermarkMode

Specifies the WatermarkMode of the MapControl.

Remarks

Important

Bing Maps for Enterprise service retirement

The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.

For more information, see the Bing Maps Developer Center and Bing Maps documentation.

See also