HarmonyOS 我给地图添加了Marker, 但是未显示标题?

// Marker初始化参数
let markerOptions: mapCommon.MarkerOptions = {
  position: {
    latitude: this.attendListItemInfo.lat,
    longitude: this.attendListItemInfo.lng
  },
  rotation: 0,
  visible: true,
  zIndex: 0,
  alpha: 1,
  anchorU: 0.5,
  anchorV: 1,
  clickable: true,
  draggable: true,
  flat: false,
  title: '地址标题'
};

// 创建Marker
this.marker = await this.mapController.addMarker(markerOptions);
阅读 533
1 个回答
logo
HarmonyOS
子站问答
访问
宣传栏