ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[腾讯地图坐标拾取](https://lbs.qq.com/tool/getpoint/) ``` // pages/map/map.js Page({ /** * 页面的初始数据 */ data: { latitude:30.552610, longitude:114.504270, markers: [{ //标记 iconPath: "/images/icon/map.png", id: 0, latitude: 30.552610, longitude: 114.504270, title:"极客营", width: 50, height: 50, label:{ //标签 content:"极客营科技有限公司", color:"#EE5E7B", borderWidth:1, borderColor:"#EE5E78", borderRadius:5, padding:5, }, }], polyline: [{ //路线 points: [{ //起始地经纬 longitude: 114.504270, latitude: 30.552610, }, { //终点经纬 longitude: 114.503369, latitude: 30.552597, }], color:"#FF0000DD", width: 2, dottedLine: true }], circles:[{ //地图圆圈样式 latitude: 30.552597, longitude: 114.503369, fillColor:"#8DE25055", radius:30 }], } }) ``` ``` // pages/map/map.wxml <map id="map" longitude="{{longitude}}" latitude="{{latitude}}" circles="{{circles}}" markers="{{markers}}" scale="18" polyline="{{polyline}}" ></map> ```