其實很簡單
控制
<map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" controls="{{controls}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" polyline="{{polyline}}" polygons="{{polygons}}" bindregionchange="regionchange" show-location style="width: 100%; height: 100vh;">
map里的longitude和latitude屬性
在js文件里給longitude和latitude賦值就可以了
this.setData({ longitude:"要賦的值“//必須是num類型 latitude:"同上" })