1***@qq.com
1***@qq.com
  • 发布:2022-04-14 17:19
  • 更新:2022-04-14 17:23
  • 阅读:478

uniapp ios使用map 怎么获取map点击的对象

分类:nvue
iOS

map 点位点击时获取当前的点击信息,android 端可以,ios端获取的marker始终为0 (获取不到有用的信息)

2022-04-14 17:19 负责人:无 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

@markertap

  • 1***@qq.com (作者)

    这时iOS 返回的{

    "type": "markertap",

    "timeStamp": 1649928708548,

    "target": {

    "id": "",

    "dataset": {},

    "offsetLeft": 0,

    "offsetTop": 0

    },

    "currentTarget": {

    "id": "",

    "dataset": {},

    "offsetLeft": 0,

    "offsetTop": 0

    },

    "detail": {

    "markerId": 0

    },

    "stopPropagation": "function() { [native code] }"

    }

    这时安卓返回的

    {

    "type": "markertap",

    "timeStamp": 1649924235068,

    "target": {

    "id": "",

    "dataset": {},

    "offsetLeft": 0,

    "offsetTop": 0

    },

    "currentTarget": {

    "id": "",

    "dataset": {},

    "offsetLeft": 0,

    "offsetTop": 0

    },

    "detail": {

    "markerId": "{\"id\":1818,\"name\":\"东北门人脸19\",\"address\":\"大洋湾\",\"hlsUrl\":\"http://218.92.180.38:7086/live/cameraid/1000200%2420/substream/2.m3u8\",\"state\":1,\"bdLon\":\"120.204622\",\"bdLat\":\"33.437654\",\"wgsLon\":\"120.19337562689289\",\"wgsLat\":\"33.43282056176707\"}"

    },

    "stopPropagation": "function() { [native code] }"

    }

    2022-04-14 17:33

  • 1***@qq.com (作者)

    不行啊,ios 好像拿不到 用的时nvue写法

    2022-04-14 17:34

该问题目前已经被锁定, 无法添加新回复