Marker
Definition
The Marker
component indicates points on a Map
, such as buildings or other points of interest. Marker
s can be customized in many ways, such as using custom images from the app’s assets or by changing the Marker
FillColor
. Marker
s can also be created dynamically by calling the Map
’s CreateMarker
method and configured using the “Any Component” blocks.
Properties
- AnchorHorizontal
- Sets or gets the horizontal offset of the
Marker
center relative to its image. Valid values are:1
(Left),2
(Right), or3
(Center). - AnchorVertical
- Sets or gets the vertical offset of the
Marker
center relative to its image. Valid values are:1
(Top),2
(Center), or3
(Bottom). - Description
- Sets or gets the description displayed in the info window. The info window appears when the user taps on the
Marker
. - Draggable
- Sets or gets whether or not the user can drag a map feature. This feature is accessed by long-pressing and then dragging the
Marker
to a new location. - EnableInfobox
- Enables or disables the infobox window display when the user taps the
Marker
. - FillColor
- Sets or gets the color used to fill in the
Marker
. - FillOpacity
- Sets or gets the opacity of the color used to fill the
Marker
. A value of 0.0 will be completely invisible and a value of 1.0 will be completely opaque. - Height
- Specifies the
Marker
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
Marker
’s vertical height as a percentage of theScreen
’sHeight
. - ImageAsset
- Specifies the image shown for the
Marker
. If set to the empty string “”, then the default marker icon will be used. - Latitude
- Sets or gets the latitude of the
Marker
, in degrees, with positive values representing north of the equator and negative values representing south of the equator. To update theLatitude
andLongitude
simultaneously, use theSetLocation
method. - Longitude
- Sets or gets the longitude of the
Marker
, in degrees, with positive values representing east of the prime meridian and negative values representing west of the prime meridian. To update theLatitude
andLongitude
simultaneously, use theSetLocation
method. - StrokeColor
- Sets or gets the color used to outline the
Marker
. - StrokeOpacity
- Sets or gets the opacity of the outline of the
Marker
. A value of 0.0 will be invisible and a value of 1.0 will be opaque. - StrokeWidth
- Sets or gets the width of the stroke used to outline the
Marker
. - Title
- Sets or gets the title displayed in the info window that appears when the user clicks on the map feature.
- Type
- Return the type of the map feature. For Marker, this returns the text “Marker”.
- Visible
- Specifies whether the
Marker
should be visible on the screen. Value istrue
if theMarker
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
Marker
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
Marker
as a percentage of theScreen
’sWidth
.