ru.dgis.sdk.map.MarkerOptions | Android SDK | 2GIS Documentation
Android SDK

MarkerOptions

Marker options.

MarkerOptions(
	position: GeoPointWithElevation,
	icon: Image?,
	iconMapDirection: MapDirection? = null,
	anchor: Anchor = Anchor(x = 0.5f, y = 0.5f),
	text: String? = null,
	textStyle: TextStyle? = null,
	iconOpacity: Opacity = Opacity(value = 1.0f),
	visible: Boolean = true,
	draggable: Boolean = false,
	iconWidth: LogicalPixel = LogicalPixel(value = 0.0f),
	userData: Any? = null,
	zIndex: ZIndex = ZIndex(value = 0),
	animatedAppearance: Boolean = true,
	levelId: LevelId? = null,
	iconAnimationMode: AnimationMode = AnimationMode.NORMAL
)

Marker options.

Parameters
position
icon
iconMapDirection
anchor
text
textStyle
iconOpacity
visible
draggable
iconWidth
userData
zIndex
animatedAppearance
levelId
iconAnimationMode
Returns
Properties

Target width used for scaling.

Object rendering level.

Whether to animate the appearance.

Link to the floor plan of the building.

Animation mode.