MapContext.translateMarker 在手机上调用失败 ?
发布于 4 年前 作者 tao24 11167 次浏览 来自 问答

MapContext.translateMarker(Object object)

在开发者工具上调用显示车的路径ok,但是预览时一直调用失败

代码片段:

this.mapCtx.translateMarker({

				markerId: markerId,

				destination: destination,

				autoRotate: true,

				rotate: 30,

				duration: duration,

				success: (res) => {

					this.i += 1

					// 小于长度减1才执行

					if (this.i < points.length - 1) {

						this.translateMarker(points);

					}

				},

				fail: (err) => {

					console.log('fail', err)

					// this.translateMarker(points)

				}

			})

测试手机 小米10 华为荣耀9

1 回复

你好,麻烦具体描述问题流程,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部