MarkerOptions class
Constructors
-
MarkerOptions({required LatLng? position, String? icon, List? icons = const [], num? alpha = 1, num? anchorU = 0.5, num? anchorV = 1, bool? draggable = false, bool? infoWindowEnable = true, num? period = 20, num? rotateAngle = 0, bool? isFlat = false, bool? isGps = false, num? infoWindowOffsetX = 0, num? infoWindowOffsetY = 0, String? snippet = '', String? title = '', bool? visible = true, bool? autoOverturnInfoWindow = false, num? zIndex = 0, num? displayLevel = 0, bool? belowMaskLayer = false, bool? lockedToScreen = false, String? lockedScreenPoint, String? customCalloutView, bool? enabled = true, bool? highlighted = false, bool? selected = false, String? leftCalloutAccessoryView, String? rightCalloutAccessoryView, bool? haveBubble = false, bool? haveAddressLabel = false, String? bubbleContent = '正在加载', String? addressLabelContent = '地址信息'})
-
TODO
-
MarkerOptions.fromJson(Map<String, dynamic> json)
-
Properties
-
addressLabelContent
↔ String?
-
地址label内容
自研iOS
getter/setter pair
-
alpha
↔ num?
-
Marker覆盖物的透明度
Android
getter/setter pair
-
anchorU
↔ num?
-
Marker覆盖物锚点在水平范围的比例
Android, iOS
getter/setter pair
-
anchorV
↔ num?
-
Marker覆盖物锚点垂直范围的比例
Android, iOS
getter/setter pair
-
autoOverturnInfoWindow
↔ bool?
-
todo 缺少文档
Android
getter/setter pair
-
belowMaskLayer
↔ bool?
-
是否在掩层下 缺少文档
Android
getter/setter pair
-
bubbleContent
↔ String?
-
气泡内容
自研iOS
getter/setter pair
-
customCalloutView
↔ String?
-
自定制弹出框view, 用于替换默认弹出框.
iOS暂未实现
getter/setter pair
-
displayLevel
↔ num?
-
显示等级 缺少文档
Android
getter/setter pair
-
draggable
↔ bool?
-
Marker覆盖物是否可拖拽
Android, iOS
getter/setter pair
-
enabled
↔ bool?
-
默认为YES,当为NO时view忽略触摸事件
iOS
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
haveAddressLabel
↔ bool?
-
是否自定义有地址信息,默认没有
自研iOS
getter/setter pair
-
haveBubble
↔ bool?
-
是否自定义有气泡,默认没有
自研iOS
getter/setter pair
-
highlighted
↔ bool?
-
是否高亮
iOS
getter/setter pair
-
icon
↔ String?
-
Marker覆盖物的图标
Android, iOS
getter/setter pair
-
icons
↔ List?
-
Marker覆盖物的动画帧图标列表,动画的描点和大小以第一帧为准,建议图片大小保持一致
Android
getter/setter pair
-
infoWindowEnable
↔ bool?
-
Marker覆盖物的InfoWindow是否允许显示, 可以通过 MarkerOptions.infoWindowEnable(boolean) 进行设置
Android, iOS
getter/setter pair
-
infoWindowOffsetX
↔ num?
-
Marker覆盖物的水平偏移距离
Android, iOS
getter/setter pair
-
infoWindowOffsetY
↔ num?
-
Marker覆盖物的垂直偏移距离
Android, iOS
getter/setter pair
-
isFlat
↔ bool?
-
Marker覆盖物是否平贴地图
Android
getter/setter pair
-
isGps
↔ bool?
-
Marker覆盖物的坐标是否是Gps,默认为false
Android
getter/setter pair
-
leftCalloutAccessoryView
↔ String?
-
TODO
显示在默认弹出框左侧的view
iOS暂未实现
getter/setter pair
-
lockedScreenPoint
↔ String?
-
固定屏幕点的坐标
iOS暂未实现
getter/setter pair
-
lockedToScreen
↔ bool?
-
是否固定在屏幕一点, 注意,拖动或者手动改变经纬度,都会导致设置失效
iOS暂未实现
getter/setter pair
-
period
↔ num?
-
设置多少帧刷新一次图片资源,Marker动画的间隔时间,值越小动画越快
Android
getter/setter pair
-
position
↔ LatLng?
-
Marker覆盖物的位置坐标
Android, iOS
getter/setter pair
-
rightCalloutAccessoryView
↔ String?
-
显示在默认弹出框右侧的view
iOS暂未实现
getter/setter pair
-
rotateAngle
↔ num?
-
Marker覆盖物的图片旋转角度,从正北开始,逆时针计算
Android
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selected
↔ bool?
-
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
iOS
getter/setter pair
-
snippet
↔ String?
-
设置 Marker覆盖物的文字描述
Android, iOS
getter/setter pair
-
title
↔ String?
-
Marker覆盖物的标题
Android, iOS
getter/setter pair
-
visible
↔ bool?
-
Marker覆盖物是否可见
Android
getter/setter pair
-
zIndex
↔ num?
-
Marker覆盖物 zIndex
Android
getter/setter pair