BMFMarker class
大头针
- Inheritance
-
- Object
- BMFOverlay
- BMFMarker
- Available Extensions
Constructors
-
BMFMarker({required BMFCoordinate position, String? icon, Uint8List? iconData, String? title, String? subtitle, double? rotation, bool? isLockedToScreen = false, BMFPoint? screenPointToLock, String? identifier, BMFPoint? centerOffset, bool? enabled3D, bool? enabled = true, bool? draggable = false, bool? selected = false, bool? canShowCallout = true, bool? hidePaopaoWhenSingleTapOnMap = true, bool? hidePaopaoWhenDoubleTapOnMap = false, bool? hidePaopaoWhenTwoFingersTapOnMap = false, bool? hidePaopaoWhenSelectOthers = true, bool? hidePaopaoWhenDrag = false, bool? hidePaopaoWhenDragOthers = false, int? displayPriority = BMFMarkerDisplayPriority.Middle, double? scaleX = 1.0, double? scaleY = 1.0, double? alpha = 1.0, bool? isPerspective, double? anchorX = 0.5, double? anchorY = 1.0, bool? isOpenCollisionDetectionWithMapPOI = false, bool? isOpenCollisionDetectionWithPaoPaoView = false, BMFTitleOptions? titleOptions, int zIndex = 0, bool visible = true, Map<
String, dynamic> ? customMap}) - BMFMarker构造方法
- BMFMarker.fromMap(Map map)
- map => BMFMarker
-
BMFMarker.icon({required BMFCoordinate position, required String? icon, String? title, String? subtitle, double? rotation, bool? isLockedToScreen = false, BMFPoint? screenPointToLock, String? identifier, BMFPoint? centerOffset, bool? enabled3D, bool? enabled = true, bool? draggable = false, bool? selected = false, bool? canShowCallout = true, bool? hidePaopaoWhenSingleTapOnMap = true, bool? hidePaopaoWhenDoubleTapOnMap = false, bool? hidePaopaoWhenTwoFingersTapOnMap = false, bool? hidePaopaoWhenSelectOthers = true, bool? hidePaopaoWhenDrag = false, bool? hidePaopaoWhenDragOthers = false, int? displayPriority = BMFMarkerDisplayPriority.Middle, double? scaleX = 1.0, double? scaleY = 1.0, double? alpha = 1.0, bool? isPerspective, double? anchorX = 0.5, double? anchorY = 1.0, bool? isOpenCollisionDetection = false, int? collisionDetectionPriority = 0, bool? isForceDisplay = false, bool? isOpenCollisionDetectionWithMapPOI = false, bool? isOpenCollisionDetectionWithPaoPaoView = false, BMFTitleOptions? titleOptions, int zIndex = 0, bool visible = true, Map<
String, dynamic> ? customMap}) - BMFMarker构造方法 since 3.1.0
-
BMFMarker.iconData({required BMFCoordinate position, required Uint8List? iconData, String? title, String? subtitle, double? rotation, bool? isLockedToScreen = false, BMFPoint? screenPointToLock, String? identifier, BMFPoint? centerOffset, bool? enabled3D, bool? enabled = true, bool? draggable = false, bool? selected = false, bool? canShowCallout = true, bool? hidePaopaoWhenSingleTapOnMap = true, bool? hidePaopaoWhenDoubleTapOnMap = false, bool? hidePaopaoWhenTwoFingersTapOnMap = false, bool? hidePaopaoWhenSelectOthers = true, bool? hidePaopaoWhenDrag = false, bool? hidePaopaoWhenDragOthers = false, int? displayPriority = BMFMarkerDisplayPriority.Middle, double? scaleX = 1.0, double? scaleY = 1.0, double? alpha = 1.0, bool? isPerspective, double? anchorX = 0.5, double? anchorY = 1.0, bool? isOpenCollisionDetection = false, int? collisionDetectionPriority = 0, bool? isForceDisplay = false, bool? isOpenCollisionDetectionWithMapPOI = false, bool? isOpenCollisionDetectionWithPaoPaoView = false, BMFTitleOptions? titleOptions, int zIndex = 0, bool visible = true, Map<
String, dynamic> ? customMap}) - BMFMarker构造方法 since 3.1.0
Properties
- alpha ↔ double?
-
透明度
read / write
- anchorX ↔ double?
-
设置 Marker 覆盖物的锚点比例,默认(0.5f, 1.0f)水平居中,垂直下对齐
范围
0.0f , 1.0f
, 否则不生效read / write - anchorY ↔ double?
-
read / write
- canShowCallout ↔ bool?
-
当为true时,view被选中时会弹出气泡,必须实现了title这个字段(iOS)
read / write
- centerOffset ↔ BMFPoint?
-
默认情况下, marker view的中心位于marker的坐标位置,
read / write
- className ↔ String?
-
类名
read / writeinherited
- collisionDetectionPriority ↔ int?
-
碰撞检测优先级,同一优先级后添加的优先展示。since 3.2.0
read / write
- customMap ↔ Map?
-
开发者自定义字段
read / writeinherited
- displayPriority ↔ int?
-
marker展示优先级,提供三种级别,其他级别开发者可自行设置,
默认值为BMFMarkerDisplayPriority.Middle,
级别数值越大越优先展示,同级别按照添加的先后顺序进行覆盖展示。
iOS独有
read / write
- draggable ↔ bool?
-
当设为true支持将view在地图上拖动
read / write
- enabled ↔ bool?
-
默认为true,当为false时view忽略触摸事件
read / write
- enabled3D ↔ bool?
-
默认情况下,标注没有3D效果,可以设置enabled3D改变使用3D效果,
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hidePaopaoWhenDoubleTapOnMap ↔ bool?
-
当发生双击地图事件时,当前的marker的泡泡是否隐藏,默认值为false
iOS独有
read / write
- hidePaopaoWhenDrag ↔ bool?
-
当拖拽当前的marker时,当前marker的泡泡是否隐藏,默认值为false
iOS独有
read / write
- hidePaopaoWhenDragOthers ↔ bool?
-
当拖拽其他marker时,当前marker的泡泡是否隐藏,默认值为false
iOS独有
read / write
- hidePaopaoWhenSelectOthers ↔ bool?
-
当选中其他marker时,当前marker的泡泡是否隐藏,默认值为true
iOS独有
read / write
- hidePaopaoWhenSingleTapOnMap ↔ bool?
-
当发生单击地图事件时,当前的marker的泡泡是否隐藏,默认值为true
iOS独有
read / write
- hidePaopaoWhenTwoFingersTapOnMap ↔ bool?
-
当发生两个手指点击地图(缩小地图)事件时,当前的marker的泡泡是否隐藏,默认值为false
iOS独有
read / write
- icon ↔ String?
-
markView显示的图片路径
read / write
- iconData ↔ Uint8List?
-
markView显示的图片数据流
read / write
- Id → String
-
获取id
read-onlyinherited
- id → String
-
获取id since 3.2.0
read-onlyinherited
- identifier ↔ String?
-
markerView的复用标识符
read / write
- isForceDisplay ↔ bool?
-
开启碰撞检测时,是否强制展示,默认false。since 3.2.0
read / write
- isLockedToScreen ↔ bool?
-
标注固定在指定屏幕位置, 必须与screenPointToLock一起使用。
read / write
- isOpenCollisionDetection ↔ bool?
-
开启碰撞检测,默认false,关闭。since 3.2.0
read / write
- isOpenCollisionDetectionWithMapPOI ↔ bool?
-
是否开启与底图POI的碰撞检测,默认false。仅支持大于15地图显示层级。since 3.5.0
read / write
- isOpenCollisionDetectionWithPaoPaoView ↔ bool?
-
开启气泡碰撞检测,默认false,关闭;且当isOpenCollisionDetection为true时生效。since 3.5.0
read / write
- isPerspective ↔ bool?
-
在有俯仰角的情况下,是否近大远小
read / write
- position ↔ BMFCoordinate
-
marker位置经纬度
read / write
- rotation ↔ double?
-
TODO ??? Android为逆时针?
marker的旋转角度 范围:顺时针0~360 since 3.8.0
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- scaleX ↔ double?
-
x方向缩放倍数
read / write
- scaleY ↔ double?
-
y方向缩放倍数
read / write
- screenPointToLock ↔ BMFPoint?
-
标注锁定在屏幕上的位置,
read / write
- selected ↔ bool?
-
默认为false,初始化时设置为true时会默认弹出气泡。设置该值来控制隐藏和弹出气泡
read / write
- subtitle ↔ String?
-
子标题
read / write
- title ↔ String?
-
标题
read / write
- titleOptions ↔ BMFTitleOptions?
-
设置marker覆盖物的标题选项 since 3.5.0
read / write
- visible ↔ bool?
-
overlay是否可见
read / writeinherited
- zIndex ↔ int?
-
元素的堆叠顺序
read / writeinherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
model -> map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited