1)第一种,:include-points="includePoints"
2)第二种:let mapCtx = uni.createMapContext('map', this);
mapCtx.includePoints({
points:points,
// padding:["10px","10px","10px","10px"]
padding:[10,10,10,10]
})
都不能实现边距;
1)第一种,:include-points="includePoints"
2)第二种:let mapCtx = uni.createMapContext('map', this);
mapCtx.includePoints({
points:points,
// padding:["10px","10px","10px","10px"]
padding:[10,10,10,10]
})
都不能实现边距;
设置10太小了 设置100就能看到了
this.myMap.includePoints({
points: this.includePoints,
padding: [100, 100, 100, 100]
})
还是不支持 哎 无论安卓还是IOS都不行
6***@qq.com (作者)
好使啦;this.myMap.includePoints({
points: this.includePoints,
padding: [100, 100, 100, 100]
})
把padding设置大一些
2024-08-01 22:01
美少女
楼主 这个问题你解决了吗
2023-06-07 12:53