MapControlDataHelper
MapControlDataHelper
MapControlDataHelper
MapControlDataHelper
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
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.
public : sealed class MapControlDataHelper : DependencyObject, IMapControlDataHelper, IMapControlDataHelper2public sealed class MapControlDataHelper : DependencyObject, IMapControlDataHelper, IMapControlDataHelper2Public NotInheritable Class MapControlDataHelper Inherits DependencyObject Implements IMapControlDataHelper, IMapControlDataHelper2// This API is not available in Javascript.
- Inheritance
-
MapControlDataHelperMapControlDataHelperMapControlDataHelperMapControlDataHelper
- Attributes
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10586.0)
Windows Mobile Extension SDK (introduced v10.0.10586.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v2)
|
Inherited Members
Inherited methods
Inherited properties
Constructors
MapControlDataHelper(MapControl) MapControlDataHelper(MapControl) MapControlDataHelper(MapControl) MapControlDataHelper(MapControl)
Creates an instance of the MapControlDataHelper class for the specified MapControl.
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.
public : MapControlDataHelper(MapControl map)public MapControlDataHelper(MapControl map)Public Sub New(map As MapControl)// This API is not available in Javascript.
The map control that provides the business and transit locations to the MapControlDataHelper.
Methods
CreateMapControl(Boolean) CreateMapControl(Boolean) CreateMapControl(Boolean) CreateMapControl(Boolean)
Prerelease. Creates a MapControl in raster-mode.
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.
public : static MapControl CreateMapControl(bool rasterRenderMode)public static MapControl CreateMapControl(Boolean rasterRenderMode)Public Static Function CreateMapControl(rasterRenderMode As Boolean) As MapControl// This API is not available in Javascript.
- rasterRenderMode
- bool Boolean Boolean Boolean
Specifies whether to create the MapControl in raster-mode.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.16257.0)
Windows Mobile Extension SDK (introduced v10.0.16257.0)
Windows Team Extension SDK (introduced v10.0.16257.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v4)
|
Examples
This example creates a MapControl in raster-mode.
public void AddMapControl()
{
var map = MapControlDataHelper.CreateMapControl(true);
// Configure the map control and register for events
map.Center = new Geopoint(new BasicGeoposition()
{
Latitude = 47.604,
Longitude = -122.329
});
map.ZoomLevel = 12;
map.PanInteractionMode = MapPanInteractionMode.Disabled;
map.RotateInteractionMode = MapInteractionMode.Disabled;
map.TiltInteractionMode = MapInteractionMode.Disabled;
map.ZoomInteractionMode = MapInteractionMode.Disabled;
map.MapContextRequested += MapControl_MapContextRequested;
MyParentGrid.Children.Add(map);
}
Remarks
If you create a MapControl in raster-mode, you can't change the map control into vector mode.
Events
BusinessLandmarkClick BusinessLandmarkClick BusinessLandmarkClick BusinessLandmarkClick
Occurs when the user taps a business location or clicks on it with the left mouse button. An instance of MapControlBusinessLandmarkClickEventArgs provides data for this 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.
public : event TypedEventHandler BusinessLandmarkClick<MapControl, MapControlBusinessLandmarkClickEventArgs>public event TypedEventHandler BusinessLandmarkClick<MapControl, MapControlBusinessLandmarkClickEventArgs>Public Event BusinessLandmarkClick<MapControl, MapControlBusinessLandmarkClickEventArgs>// This API is not available in Javascript.
BusinessLandmarkPointerEntered BusinessLandmarkPointerEntered BusinessLandmarkPointerEntered BusinessLandmarkPointerEntered
Indicates the pointer entered a business landmark.
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.
public : event TypedEventHandler BusinessLandmarkPointerEntered<MapControl, MapControlBusinessLandmarkPointerEnteredEventArgs>public event TypedEventHandler BusinessLandmarkPointerEntered<MapControl, MapControlBusinessLandmarkPointerEnteredEventArgs>Public Event BusinessLandmarkPointerEntered<MapControl, MapControlBusinessLandmarkPointerEnteredEventArgs>// This API is not available in Javascript.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.14393.0)
Windows Mobile Extension SDK (introduced v10.0.14393.0)
Windows Team Extension SDK (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v3)
|
BusinessLandmarkPointerExited BusinessLandmarkPointerExited BusinessLandmarkPointerExited BusinessLandmarkPointerExited
Indicates the pointer exited the business landmark.
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.
public : event TypedEventHandler BusinessLandmarkPointerExited<MapControl, MapControlBusinessLandmarkPointerExitedEventArgs>public event TypedEventHandler BusinessLandmarkPointerExited<MapControl, MapControlBusinessLandmarkPointerExitedEventArgs>Public Event BusinessLandmarkPointerExited<MapControl, MapControlBusinessLandmarkPointerExitedEventArgs>// This API is not available in Javascript.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.14393.0)
Windows Mobile Extension SDK (introduced v10.0.14393.0)
Windows Team Extension SDK (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v3)
|
BusinessLandmarkRightTapped BusinessLandmarkRightTapped BusinessLandmarkRightTapped BusinessLandmarkRightTapped
Occurs when the user presses-and-holds a business location or clicks on it with the right mouse button. An instance of MapControlBusinessLandmarkRightTappedEventArgs provides data for this 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.
public : event TypedEventHandler BusinessLandmarkRightTapped<MapControl, MapControlBusinessLandmarkRightTappedEventArgs>public event TypedEventHandler BusinessLandmarkRightTapped<MapControl, MapControlBusinessLandmarkRightTappedEventArgs>Public Event BusinessLandmarkRightTapped<MapControl, MapControlBusinessLandmarkRightTappedEventArgs>// This API is not available in Javascript.
TransitFeatureClick TransitFeatureClick TransitFeatureClick TransitFeatureClick
Occurs when the user taps a transit feature or clicks on it with the left mouse button. An instance of MapControlTransitFeatureClickEventArgs provides data for this 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.
public : event TypedEventHandler TransitFeatureClick<MapControl, MapControlTransitFeatureClickEventArgs>public event TypedEventHandler TransitFeatureClick<MapControl, MapControlTransitFeatureClickEventArgs>Public Event TransitFeatureClick<MapControl, MapControlTransitFeatureClickEventArgs>// This API is not available in Javascript.
TransitFeaturePointerEntered TransitFeaturePointerEntered TransitFeaturePointerEntered TransitFeaturePointerEntered
Indicates the pointer entered the 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.
public : event TypedEventHandler TransitFeaturePointerEntered<MapControl, MapControlTransitFeaturePointerEnteredEventArgs>public event TypedEventHandler TransitFeaturePointerEntered<MapControl, MapControlTransitFeaturePointerEnteredEventArgs>Public Event TransitFeaturePointerEntered<MapControl, MapControlTransitFeaturePointerEnteredEventArgs>// This API is not available in Javascript.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.14393.0)
Windows Mobile Extension SDK (introduced v10.0.14393.0)
Windows Team Extension SDK (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v3)
|
TransitFeaturePointerExited TransitFeaturePointerExited TransitFeaturePointerExited TransitFeaturePointerExited
Indicates the pointer exited the 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.
public : event TypedEventHandler TransitFeaturePointerExited<MapControl, MapControlTransitFeaturePointerExitedEventArgs>public event TypedEventHandler TransitFeaturePointerExited<MapControl, MapControlTransitFeaturePointerExitedEventArgs>Public Event TransitFeaturePointerExited<MapControl, MapControlTransitFeaturePointerExitedEventArgs>// This API is not available in Javascript.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.14393.0)
Windows Mobile Extension SDK (introduced v10.0.14393.0)
Windows Team Extension SDK (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Maps.LocalSearchContract (introduced v3)
|
TransitFeatureRightTapped TransitFeatureRightTapped TransitFeatureRightTapped TransitFeatureRightTapped
Occurs when the user presses-and-holds a transit feature or clicks on it with the right mouse button. An instance of MapControlTransitFeatureRightTappedEventArgs provides data for this 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.
public : event TypedEventHandler TransitFeatureRightTapped<MapControl, MapControlTransitFeatureRightTappedEventArgs>public event TypedEventHandler TransitFeatureRightTapped<MapControl, MapControlTransitFeatureRightTappedEventArgs>Public Event TransitFeatureRightTapped<MapControl, MapControlTransitFeatureRightTappedEventArgs>// This API is not available in Javascript.