Adds a map overlay to a MapView

To overlay the map, you must decorate it with MapOverlay nodes. There are three type of overlay that supported Polyline, Polygon and Circle. In order to draw Overlay, it needs to define position where overlay should be drawn on the map using Coordinate property. See the example below on how you can create map overlay

<NativeViewHost>
    <MapView Zoom="14" Latitude="-6.914742" Longitude="107.609820">
        <MapOverlay Type="Polyline" StrokeColor="Blue" LineWidth="5">
            <Coordinate Latitude="-6.914742" Longitude="107.609820" />
            <Coordinate Latitude="-6.915850" Longitude="107.609929" />
            <Coordinate Latitude="-6.916959" Longitude="107.611009" />
        </MapOverlay>
    </MapView>
</NativeViewHost>

Location

Namespace
Fuse.Controls
Package
Fuse.Maps 2.9.1
Show Uno properties and methods

Interface of MapOverlay

DashPattern : int2 ux

The dash pattern when drawing stroke, int2 type with first value define length of dash, and second value define length of gap

Radius : double ux

Radius of the circle overlay, pplicable when using Circle overlay type

Inherited from Node

ContextParent : Node uno

The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.

FindNodeByName(Selector, Predicate<Node> (Node)) : Node uno

Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.

IsRootingStarted : bool uno

Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.

Name : Selector ux

Run-time name of the node. This property is automatically set using the ux:Name attribute.

OnRooted uno

If you override OnRooted you must call base.OnRooted() first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces

IScriptObject uno

Interface for objects that can have a script engine representation