ranhetu
ranhetu
  • 发布:2020-06-24 15:51
  • 更新:2020-06-24 15:51
  • 阅读:18

想要实现在视野中显示所有marker的功能,遇到些问题

分类:uniCloud

想要实现在视野中显示所有marker的功能,遇到些问题,求指点!

onReady() {
this.map = uni.createMapContext("map", this);
this.map.includePoints({
padding:[50],
points:[{latitude:37.885836, longitude:112.550897}],
})
}
上面这段代码,用微信的小程序工具跑是有效的,安卓模拟器无效。

如果用修改map绑定的includePoints变量的方法,小程序和安卓模拟器都有效,但是安卓模拟器显示的最左边的marker和最右边的marker都贴边,marker图标只显示一半,似乎是没有padding。这种方法可以修改padding吗?可以的话问题也能解决。

https://www.imdb.com/list/ls080658900/?publish=publish
https://www.imdb.com/list/ls080658953/?publish=publish
https://www.imdb.com/list/ls080658911/?publish=publish
https://www.imdb.com/list/ls080658962/?publish=publish
https://www.imdb.com/list/ls080658941/?publish=publish
https://www.imdb.com/list/ls080658998/?publish=publish
https://www.imdb.com/list/ls080658873/?publish=publish
https://www.imdb.com/list/ls080658814/?publish=publish
https://www.imdb.com/list/ls080658820/?publish=publish
https://www.imdb.com/list/ls080658881/?publish=publish
https://www.imdb.com/list/ls080670050/?publish=publish
https://www.imdb.com/list/ls080670077/?publish=publish
https://www.imdb.com/list/ls080670033/?publish=publish
https://www.imdb.com/list/ls080670025/?publish=publish
https://www.imdb.com/list/ls080670048/?publish=publish
https://www.imdb.com/list/ls080670536/?publish=publish
https://www.imdb.com/list/ls080670564/?publish=publish
https://www.imdb.com/list/ls080670597/?publish=publish
https://www.imdb.com/list/ls080670772/?publish=publish
https://www.imdb.com/list/ls080670719/?publish=publish
https://www.imdb.com/list/ls080670732/?publish=publish
https://www.imdb.com/list/ls080670743/?publish=publish
https://www.imdb.com/list/ls080670780/?publish=publish
https://www.imdb.com/list/ls080670108/?publish=publish
https://www.imdb.com/list/ls080670133/?publish=publish
https://www.imdb.com/list/ls080670165/?publish=publish
https://www.imdb.com/list/ls080670147/?publish=publish
https://www.imdb.com/list/ls080670302/?publish=publish
https://www.imdb.com/list/ls080670356/?publish=publish
https://www.imdb.com/list/ls080670316/?publish=publish
https://www.imdb.com/list/ls080658900/?mode=desktop
https://www.imdb.com/list/ls080658953/?mode=desktop
https://www.imdb.com/list/ls080658911/?mode=desktop
https://www.imdb.com/list/ls080658962/?mode=desktop
https://www.imdb.com/list/ls080658941/?mode=desktop
https://www.imdb.com/list/ls080658998/?mode=desktop
https://www.imdb.com/list/ls080658873/?mode=desktop
https://www.imdb.com/list/ls080658814/?mode=desktop
https://www.imdb.com/list/ls080658820/?mode=desktop
https://www.imdb.com/list/ls080658881/?mode=desktop
https://www.imdb.com/list/ls080670050/?mode=desktop
https://www.imdb.com/list/ls080670077/?mode=desktop
https://www.imdb.com/list/ls080670033/?mode=desktop
https://www.imdb.com/list/ls080670025/?mode=desktop
https://www.imdb.com/list/ls080670048/?mode=desktop
https://www.imdb.com/list/ls080670536/?mode=desktop
https://www.imdb.com/list/ls080670564/?mode=desktop
https://www.imdb.com/list/ls080670597/?mode=desktop
https://www.imdb.com/list/ls080670772/?mode=desktop
https://www.imdb.com/list/ls080670719/?mode=desktop
https://www.imdb.com/list/ls080670732/?mode=desktop
https://www.imdb.com/list/ls080670743/?mode=desktop
https://www.imdb.com/list/ls080670780/?mode=desktop
https://www.imdb.com/list/ls080670108/?mode=desktop
https://www.imdb.com/list/ls080670133/?mode=desktop
https://www.imdb.com/list/ls080670165/?mode=desktop
https://www.imdb.com/list/ls080670147/?mode=desktop
https://www.imdb.com/list/ls080670302/?mode=desktop
https://www.imdb.com/list/ls080670356/?mode=desktop
https://www.imdb.com/list/ls080670316/?mode=desktop
https://www.imdb.com/list/ls080658900/
https://www.imdb.com/list/ls080658953/
https://www.imdb.com/list/ls080658911/
https://www.imdb.com/list/ls080658962/
https://www.imdb.com/list/ls080658941/
https://www.imdb.com/list/ls080658998/
https://www.imdb.com/list/ls080658873/
https://www.imdb.com/list/ls080658814/
https://www.imdb.com/list/ls080658820/
https://www.imdb.com/list/ls080658881/
https://www.imdb.com/list/ls080670050/
https://www.imdb.com/list/ls080670077/
https://www.imdb.com/list/ls080670033/
https://www.imdb.com/list/ls080670025/
https://www.imdb.com/list/ls080670048/
https://www.imdb.com/list/ls080670536/
https://www.imdb.com/list/ls080670564/
https://www.imdb.com/list/ls080670597/
https://www.imdb.com/list/ls080670772/
https://www.imdb.com/list/ls080670719/
https://www.imdb.com/list/ls080670732/
https://www.imdb.com/list/ls080670743/
https://www.imdb.com/list/ls080670780/
https://www.imdb.com/list/ls080670108/
https://www.imdb.com/list/ls080670133/
https://www.imdb.com/list/ls080670165/
https://www.imdb.com/list/ls080670147/
https://www.imdb.com/list/ls080670302/
https://www.imdb.com/list/ls080670356/
https://www.imdb.com/list/ls080670316/

2020-06-24 15:51 负责人:无 分享
已邀请:

要回复问题请先登录注册