请教各位,map组件经纬度的用法
< map id = "myMap" style = "width: 100%; height: 300px;" longitude = "{{longitude}}" markers = "{{markers}}" latitude = "{{latitude}}" scale = '{{scale}}' polyline = "{{polyline}}" > |
/** * 页面的初始数据 */ data: { orderId: '' , scale: 11, markers:[], distance: '' , longitude:120, latitude:30 }, |
这样写的话会报错
将map里的{{latitude}}{{longitude}}改成经纬度直接填进去就能正常显示。但是我想动态地填入经纬度该怎么弄
4 回复