Skip to content

使用Marker的icon属性后还是没有生效 #70

@lujb0926

Description

@lujb0926

描述 / Description

    <Marker
        icon={{
          uri: "https://jhcx-app-v6-static.ninebot.com/icon/ic_start_marker_dark.png",
          width: 48,
          height: 48,
        }}
        // icon={require("../imgs/ic_alert_dark.png")}
        position={startLoc}
      />
  1. 正常设置uri后没有效果,还是显示原来的默认图标
  2. 设置为icon={require("../imgs/ic_alert_dark.png")} 后会闪退

版本是:

    "name": "@react-native-oh-tpl/react-native-amap3d",
    "version": "3.2.4-0.1.1-rc.1",

复现步骤 / Steps to reproduce

No response

库版本 / Library version

3.2.4

React Native OpenHarmony version

3.2.4-0.1.1-rc.1

构建类型 / Build type

None

设备 / Device

None

设备版本 / Device model

No response

已悉知 / Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions