先放个图看下地图编辑实际效果:
地图控件示例代码
<!-- map.wxml -->
<map id="map" longitude="113.324520" latitude="23.099994" scale="14" controls="{
{controls}}" bindcontroltap="controltap" markers="{
{markers}}" bindmarkertap="markertap" polyline="{
{polyline}}" bindregionchange="regionchange" show-location style="width: 100%; height: 300px;"></map>
// map.js
Page({
data: {
markers: [{
iconPath: "/resources/others.png",
id: 0,
latitude: 23.099994,