|
@@ -77,7 +77,9 @@
|
|
|
:fillOpacity="polygon.fillOpacity"
|
|
|
:strokeColor="polygon.strokeColor"
|
|
|
:strokeWeight="polygon.strokeWeight"
|
|
|
- :strokeOpacity="polygon.strokeOpacity">
|
|
|
+ :strokeOpacity="polygon.strokeOpacity"
|
|
|
+ :extData="{index}"
|
|
|
+ :events="polygonEvents">
|
|
|
</el-amap-polygon>
|
|
|
</el-amap>
|
|
|
<MapTextEdit
|
|
@@ -176,6 +178,13 @@ export default {
|
|
|
that.markerData = [...markerData]
|
|
|
},
|
|
|
},
|
|
|
+ polygonEvents: {
|
|
|
+ click(e) {
|
|
|
+ // console.log(e.target.getExtData())
|
|
|
+ console.log(wx)
|
|
|
+ wx.miniProgram.navigateTo({url: 'pages/index/index'})
|
|
|
+ },
|
|
|
+ },
|
|
|
curMarkersIndex: 0,
|
|
|
plugin: [{
|
|
|
pName: 'MouseTool',
|