Share via


MapHandler Class

Definition

Handler for the IMap control that manages the platform-specific map implementation.

public ref class MapHandler : Microsoft::Maui::Handlers::ViewHandler<Microsoft::Maui::Maps::IMap ^, System::Object ^>, Microsoft::Maui::Maps::Handlers::IMapHandler
public class MapHandler : Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.Maps.IMap,object>, Microsoft.Maui.Maps.Handlers.IMapHandler
type MapHandler = class
    inherit ViewHandler<IMap, obj>
    interface IMapHandler
    interface IViewHandler
    interface IElementHandler
Public Class MapHandler
Inherits ViewHandler(Of IMap, Object)
Implements IMapHandler
Inheritance
Implements

Constructors

Name Description
MapHandler()

Initializes a new instance of the MapHandler class with default mappers.

MapHandler(IPropertyMapper, CommandMapper)

Initializes a new instance of the MapHandler class with optional custom mappers.

Fields

Name Description
CommandMapper

The command mapper that maps cross-platform commands to platform-specific methods.

Mapper

The property mapper that maps cross-platform properties to platform-specific methods.

Properties

Name Description
ContainerView

Gets the view that acts as a container for the PlatformView.

(Inherited from ViewHandler)
HasContainer

Gets or sets a value that indicates whether the PlatformView is contained within a view.

(Inherited from ViewHandler)
MauiContext (Inherited from ElementHandler)
NeedsContainer

Gets a value that indicates whether or not the VirtualView needs a container view.

(Inherited from ViewHandler)
PlatformView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
Services (Inherited from ElementHandler)
VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)

Methods

Name Description
ConnectHandler(TPlatformView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
CreatePlatformView()
DisconnectHandler(TPlatformView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
GetDesiredSize(Double, Double) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (Inherited from ElementHandler)
MapElements(IMapHandler, IMap)
MapHideInfoWindow(IMapHandler, IMap, Object)

Maps the HideInfoWindow(IMapPin) command to the platform-specific implementation.

MapIsClusteringEnabled(IMapHandler, IMap)
MapIsScrollEnabled(IMapHandler, IMap)
MapIsShowingUser(IMapHandler, IMap)
MapIsTrafficEnabled(IMapHandler, IMap)
MapIsZoomEnabled(IMapHandler, IMap)
MapMapStyle(IMapHandler, IMap)
MapMapType(IMapHandler, IMap)
MapMoveToRegion(IMapHandler, IMap, Object)
MapPins(IMapHandler, IMap)
MapShowInfoWindow(IMapHandler, IMap, Object)

Maps the ShowInfoWindow(IMapPin) command to the platform-specific implementation.

MapUpdateMapElement(IMapHandler, IMap, Object)

Maps the UpdateMapElement(IMapElement) command to the platform-specific implementation.

PlatformArrange(Rect) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
RemoveContainer() (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetMauiContext(IMauiContext) (Inherited from ElementHandler)
SetupContainer() (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IElement) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
UpdateMapElement(IMapElement)
UpdateValue(String) (Inherited from ElementHandler)

Explicit Interface Implementations

Name Description
IElementHandler.DisconnectHandler() (Inherited from ElementHandler)
IElementHandler.PlatformView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
IMapHandler.PlatformView
IMapHandler.VirtualView
IViewHandler.ContainerView (Inherited from ViewHandler)
IViewHandler.VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)

Extension Methods

Name Description
GetRequiredService<T>(IElementHandler, Type)
GetRequiredService<T>(IElementHandler)
GetService<T>(IElementHandler, Type)
GetService<T>(IElementHandler)
GetServiceProvider(IElementHandler)
IsConnected(IElementHandler)

Applies to