BMFMarker constructor

BMFMarker(
  1. {@required BMFCoordinate position,
  2. @required String icon,
  3. String title,
  4. String subtitle,
  5. bool isLockedToScreen: false,
  6. BMFPoint screenPointToLock,
  7. String identifier,
  8. BMFPoint centerOffset,
  9. bool enabled3D,
  10. bool enabled: true,
  11. bool draggable: false,
  12. bool selected: false,
  13. bool canShowCallout: true,
  14. bool hidePaopaoWhenSingleTapOnMap: true,
  15. bool hidePaopaoWhenDoubleTapOnMap: false,
  16. bool hidePaopaoWhenTwoFingersTapOnMap: false,
  17. bool hidePaopaoWhenSelectOthers: true,
  18. bool hidePaopaoWhenDrag: false,
  19. bool hidePaopaoWhenDragOthers: false,
  20. int displayPriority: BMFMarkerDisplayPriority.Middle,
  21. double scaleX: 1.0,
  22. double scaleY: 1.0,
  23. double alpha: 1.0,
  24. bool isPerspective,
  25. int zIndex: 0,
  26. bool visible: true}
)

BMFMarker构造方法

Implementation

BMFMarker(
    {@required this.position,
    @required this.icon,
    this.title,
    this.subtitle,
    this.isLockedToScreen: false,
    this.screenPointToLock,
    this.identifier,
    this.centerOffset,
    this.enabled3D,
    this.enabled: true,
    this.draggable: false,
    this.selected: false,
    this.canShowCallout: true,
    this.hidePaopaoWhenSingleTapOnMap: true,
    this.hidePaopaoWhenDoubleTapOnMap: false,
    this.hidePaopaoWhenTwoFingersTapOnMap: false,
    this.hidePaopaoWhenSelectOthers: true,
    this.hidePaopaoWhenDrag: false,
    this.hidePaopaoWhenDragOthers: false,
    this.displayPriority: BMFMarkerDisplayPriority.Middle,
    this.scaleX: 1.0,
    this.scaleY: 1.0,
    this.alpha: 1.0,
    this.isPerspective,
    int zIndex: 0,
    bool visible: true})
    : assert(position != null),
      assert(icon != null),
      super(zIndex: zIndex, visible: visible);