其实很简单

控制

<map 
     show-location style="width: 100%; height: 100vh;">

  map里的longitude和latitude属性

在js文件里给longitude和latitude赋值就可以了

this.setData({
   longitude:"要赋的值“//必须是num类型
   latitude:"同上"  
})

  

相关文章:

  • 2021-12-06
  • 2022-02-13
  • 2021-12-04
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-11-19
  • 2021-12-27
相关资源
相似解决方案