效果展示
wx.createMapContext(string mapId, Object this)
创建 map 上下文 MapContext 对象。
参数 string mapId
MapContext
MapContext 实例,可通过 wx.createMapContext 获取。
mapContext 通过 id 跟一个
方法
MapContext.getCenterLocation()
获取当前地图中心的经纬度。返回的是 gcj02 坐标系,可以用于 wx.openLocation()
getCenterLocation参数