ry-vue-map 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +1 -1
- package/package.json +2 -2
- package/src/components/maps/models/ryKML/index.js +8 -1
- package/src/components/maps/models/ryKMLs/index.js +7 -2
- package/src/components/maps/ryKML/src/index.vue +161 -159
- package/src/components/maps/ryKMLs/src/index.vue +23 -22
- package/src/views/map/index.vue +3 -1053
- package/src/views/map/3301.js +0 -96828
- package/src/views/map/330112.js +0 -5106
- package/src/views/map/330681.js +0 -3454
- package/src/views/map/331123.js +0 -4736
- package/src/views/map/ceshijson.js +0 -323
- package/src/views/map/ceshisuhusss.js +0 -7587
- package/src/views/map/dksj.js +0 -482171
- package/src/views/map/imgUrl.js +0 -1517
- package/src/views/map/index3.vue +0 -207
- package/src/views/map/index4.vue +0 -207
- package/src/views/map/indexNew.vue +0 -625
- package/src/views/map/indexStatic.vue +0 -1
- package/src/views/map/indexsssss.vue +0 -762
- package/src/views/map/line.vue +0 -1045
- package/src/views/map/lineData.js +0 -19592
- package/src/views/map/lineData2.js +0 -3449
- package/src/views/map/new_file.vue +0 -280
- package/src/views/map/obj.js +0 -10014
package/src/views/map/index.vue
CHANGED
|
@@ -1,1059 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<ry-map projection="EPSG:4326" :zoom="15" :minZoom="1" :maxZoom="maxZoom" :center="center" @load="load($event)"
|
|
4
|
-
:isCrossHair="isRyMapTool" :isRight="true" :isRyMapTool="true" @drawSuccess="drawSuccess" @drawError="drawError"
|
|
5
|
-
:isShowRangingTool="true" :isShowDrawTool="isRyMapTool" :bindMapClick="true" @mapClick="mapClick($event)"
|
|
6
|
-
@crossHairClick="crossHairClick($event)" :bindMapMoveend="true" :isSwitchMapRight='true' :switchMapPosTop='60'
|
|
7
|
-
:switchMapPosLeftOrRight="20" :switchMapHeight="40" :switchMapDefaultTypeOrLayer="[2,2]"
|
|
8
|
-
@mapMoveend="mapMoveend($event)" @loadDrawPolygonEvent="loadDrawPolygonEvent($event)" :initModifyPolygon="geoJson"
|
|
9
|
-
@changeSwitchMap="changeSwitchMap($event)" :isShowSwitchMap="true" @drawLineEvent="drawLineEvent($event)"
|
|
10
|
-
@drawPolygonEvent="drawPolygonEvent($event)">
|
|
11
|
-
<template #marker="{mapDto}">
|
|
12
|
-
<ry-lines :map="mapDto.map"
|
|
13
|
-
:model="lineData1"
|
|
14
|
-
:gpsType="gpsType"
|
|
15
|
-
:clearLiens="clearLiens"
|
|
16
|
-
:isShowAll="isShowAll"
|
|
17
|
-
:startMarkerDto="startMarkerDto"
|
|
18
|
-
:endMarkerDto="endMarkerDto"
|
|
19
|
-
:moveMarkerDto="endMarkerDto"
|
|
20
|
-
:lineAppend="lineAppend"
|
|
21
|
-
:isShowPlayback="!isShowPaly"
|
|
22
|
-
:linenIsert="lineData2"
|
|
23
|
-
@trackPlayEvent="trackPlayEvent($event)">
|
|
24
|
-
</ry-lines>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
</ry-map>
|
|
28
|
-
|
|
29
|
-
<button @click="onClick()">测试</button>
|
|
30
|
-
<button @click="onClick2()">测试2</button>
|
|
31
|
-
<button @click="onClick3()">测试3</button>
|
|
32
|
-
|
|
33
|
-
<button @click="onShow()">显示</button>
|
|
34
|
-
<button @click="onHide()">隐藏</button>
|
|
35
|
-
<aside class="aside-style">
|
|
36
|
-
<el-button class="ele-text-primary" v-show="isShowPaly" style="padding:10px;" @click.stop="onShowPaly(false)">
|
|
37
|
-
轨迹回放 </el-button>
|
|
38
|
-
|
|
39
|
-
<el-button class="ele-text-primary" v-show="!isShowPaly" style="padding:10px; color: red;"
|
|
40
|
-
@click.stop="onShowPaly(true)">
|
|
41
|
-
结束轨迹回放 </el-button>
|
|
42
|
-
<button @click="onClick10()">导出数据</button>
|
|
43
|
-
</aside>
|
|
44
|
-
</div>
|
|
2
|
+
<div></div>
|
|
45
3
|
</template>
|
|
46
|
-
|
|
47
4
|
<script>
|
|
48
|
-
import dayjs from 'dayjs'
|
|
49
|
-
import RyMap from '@/components/maps/ryMap/src/index.vue';
|
|
50
|
-
import RyMapTool from '@/components/maps/ryMapTool/src/index.vue';
|
|
51
|
-
import RyPolygon from '@/components/maps/ryPolygon/src/index.vue';
|
|
52
|
-
import RyPolygons from '@/components/maps/ryPolygons/src/index.vue';
|
|
53
|
-
import RyClustersMarker from '@/components/maps/ryClustersMarker/src/index.vue';
|
|
54
|
-
import RyPolygonGeo from '@/components/maps/ryPolygonGeo/src/index.vue';
|
|
55
|
-
import RyLines from '@/components/maps/ryLines/src/index.vue';
|
|
56
|
-
import gJson from './3301';
|
|
57
|
-
import gJson2 from "./331123";
|
|
58
|
-
import gJson10 from "./330681";
|
|
59
|
-
import {
|
|
60
|
-
createPolygonBoundary,
|
|
61
|
-
GPS,
|
|
62
|
-
exportToTxt
|
|
63
|
-
} from "ry-map";
|
|
64
|
-
import lineDataArr from './lineData.js';
|
|
65
|
-
// import lineData2 from './lineData2.js';
|
|
66
|
-
|
|
67
|
-
// import { convertWGS84,convertGCJ02 } from "ry-map/src/lzh";
|
|
68
|
-
|
|
69
|
-
// import {
|
|
70
|
-
// toDateString
|
|
71
|
-
// } from 'ele-admin/packages/util';
|
|
72
|
-
|
|
73
|
-
const g1 =
|
|
74
|
-
"{\"type\":\"Feature\",\"bbox\":[120.15521468766134,30.17913,120.15548537675164,30.179627590685214],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[120.15521468766134,30.17961706012091],[120.155403,30.17913],[120.15548537675164,30.179627590685214],[120.15521468766134,30.17961706012091]]]},\"properties\":{\"perimeter\":139.0,\"squaremeter\":715.18,\"mu\":1.07,\"center\":[120.15535003220648,30.179378795342608],\"areacode\":\"3301\",\"geohash\":\"wtm7wj\",\"extend\":null}}";
|
|
75
|
-
const g2 =
|
|
76
|
-
"{\"type\":\"Feature\",\"bbox\":[120.16310703603898,30.19646189535682,120.16429249947886,30.19696148364998],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[120.16310703603898,30.196910677880176],[120.16325945237935,30.19646189535682],[120.16429249947886,30.196648182533405],[120.16339493378612,30.19696148364998],[120.16310703603898,30.196910677880176]]]},\"properties\":{\"perimeter\":275.0,\"squaremeter\":3354.54,\"mu\":5.03,\"center\":[120.16369976775891,30.1967116895034],\"areacode\":\"3301\",\"geohash\":\"wtm7y3\",\"extend\":null}}"
|
|
77
|
-
const g3 =
|
|
78
|
-
"{\"type\":\"Feature\",\"bbox\":[120.156523,30.175227,120.157111,30.17557],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[120.156523,30.175545],[120.156875,30.175227],[120.157111,30.17557],[120.156523,30.175545]]]},\"properties\":{\"perimeter\":150.0,\"squaremeter\":1046.35,\"mu\":1.56,\"center\":[120.156817,30.1753985],\"areacode\":\"330102001051\",\"geohash\":\"wtm7wj\",\"extend\":null}}";
|
|
79
|
-
const g4 =
|
|
80
|
-
"{\"type\":\"Feature\",\"bbox\":[120.153496,30.182888,120.154153,30.183264],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[120.153496,30.183246],[120.15385760556681,30.183180460251048],[120.154152,30.183264],[120.15400261288897,30.183120670502092],[120.154153,30.182913],[120.15385966728229,30.182965354602516],[120.153513,30.182888],[120.15357927397686,30.18307737447699],[120.153496,30.183246]]]},\"properties\":{\"perimeter\":219.0,\"squaremeter\":1549.5,\"mu\":2.32,\"center\":[120.1538245,30.183076],\"areacode\":\"330102001051\",\"geohash\":\"wtm7wn\",\"extend\":null}}";
|
|
81
|
-
|
|
82
|
-
const g5 = {
|
|
83
|
-
"type": "Feature",
|
|
84
|
-
"geometry": {
|
|
85
|
-
"type": "Polygon",
|
|
86
|
-
"coordinates": [
|
|
87
|
-
[
|
|
88
|
-
[117.38359500000934, 40.225653000185844],
|
|
89
|
-
[117.37169399977836, 40.216044000430315],
|
|
90
|
-
[117.37727099975689, 40.187872999939032],
|
|
91
|
-
[117.38841300005993, 40.178132000391543],
|
|
92
|
-
[117.35885300026587, 40.176848000534847],
|
|
93
|
-
[117.3465460001978, 40.167488999717591],
|
|
94
|
-
[117.35175400024696, 40.158968999819535],
|
|
95
|
-
[117.33876800034295, 40.140978000234554],
|
|
96
|
-
[117.31954199956374, 40.140466000005972],
|
|
97
|
-
[117.30150999988666, 40.135934000553732],
|
|
98
|
-
[117.29579599988551, 40.124050000207376],
|
|
99
|
-
[117.28326899956471, 40.121698000562333],
|
|
100
|
-
[117.26951999954838, 40.112200999676475],
|
|
101
|
-
[117.25914100025705, 40.110096999776772],
|
|
102
|
-
[117.24314500004175, 40.116232000306638],
|
|
103
|
-
[117.21793400025399, 40.097286999895175],
|
|
104
|
-
[117.20652400018253, 40.095440000155918],
|
|
105
|
-
[117.17854350038226, 40.084184500014715],
|
|
106
|
-
[117.17017799951509, 40.07141100001769],
|
|
107
|
-
[117.15488100005814, 40.074779999797215],
|
|
108
|
-
[117.14925799975697, 40.067775000515894],
|
|
109
|
-
[117.12959300031673, 40.062676000097383],
|
|
110
|
-
[117.10681600035821, 40.070857999696955],
|
|
111
|
-
[117.08291199968914, 40.068799000073852],
|
|
112
|
-
[117.07542499976398, 40.063565999771129],
|
|
113
|
-
[117.05686199988145, 40.060890000473194],
|
|
114
|
-
[117.03285199972004, 40.0486830005201],
|
|
115
|
-
[117.01883800007374, 40.031328999733603],
|
|
116
|
-
[116.99994350019244, 40.031310499779806],
|
|
117
|
-
[116.96707899999592, 40.040374000459792],
|
|
118
|
-
[116.9563190002217, 40.05054400000563],
|
|
119
|
-
[116.94103300037273, 40.040717000089558],
|
|
120
|
-
[116.92462199990541, 40.05361200029364],
|
|
121
|
-
[116.9136429999246, 40.045573000093952],
|
|
122
|
-
[116.90863500010528, 40.051607000462752],
|
|
123
|
-
[116.8682639999837, 40.039351000048669],
|
|
124
|
-
[116.84995300003095, 40.052677000343351],
|
|
125
|
-
[116.81742500006374, 40.046288999837543],
|
|
126
|
-
[116.81718899997247, 40.027314999887381],
|
|
127
|
-
[116.80350200011731, 40.031191999711098],
|
|
128
|
-
[116.79546099982531, 40.028307999814388],
|
|
129
|
-
[116.77913000034926, 40.033316000533034],
|
|
130
|
-
[116.76727300034872, 40.014228999868521],
|
|
131
|
-
[116.76831499983746, 39.989588000286062],
|
|
132
|
-
[116.75061900036667, 39.960205999707171],
|
|
133
|
-
[116.76256299988256, 39.954793000096913],
|
|
134
|
-
[116.77301399979626, 39.954939999681301],
|
|
135
|
-
[116.77785500000834, 39.936608000558806],
|
|
136
|
-
[116.77534600031777, 39.929674000055115],
|
|
137
|
-
[116.77895799961209, 39.894963000142411],
|
|
138
|
-
[116.7855879995866, 39.883861999931412],
|
|
139
|
-
[116.79823700013753, 39.887990000538139],
|
|
140
|
-
[116.81390799975441, 39.888886000488583],
|
|
141
|
-
[116.84628399990675, 39.869122000080267],
|
|
142
|
-
[116.85340500004077, 39.857644000470316],
|
|
143
|
-
[116.88151200027869, 39.843089000157306],
|
|
144
|
-
[116.88978599962422, 39.832491999805995],
|
|
145
|
-
[116.90073800015864, 39.829137999818897],
|
|
146
|
-
[116.89669399982824, 39.847934000553721],
|
|
147
|
-
[116.91015299996104, 39.846897000396325],
|
|
148
|
-
[116.92233299956831, 39.829271999703053],
|
|
149
|
-
[116.92358799988631, 39.810968000073217],
|
|
150
|
-
[116.94523699998763, 39.786588999982428],
|
|
151
|
-
[116.94237999953737, 39.780578999821046],
|
|
152
|
-
[116.91634100023703, 39.779840999962232],
|
|
153
|
-
[116.904621000259, 39.762353000190842],
|
|
154
|
-
[116.89356699951747, 39.757995999815591],
|
|
155
|
-
[116.90319700024145, 39.74887400003513],
|
|
156
|
-
[116.90591100039239, 39.730673999805276],
|
|
157
|
-
[116.88389599960078, 39.724514999967312],
|
|
158
|
-
[116.87705299969628, 39.715385999864054],
|
|
159
|
-
[116.8830680000882, 39.702412000513448],
|
|
160
|
-
[116.89976899953979, 39.685790000208385],
|
|
161
|
-
[116.9007040003894, 39.675565999970956],
|
|
162
|
-
[116.88672699975132, 39.671842000008326],
|
|
163
|
-
[116.87775799983194, 39.674465000459463],
|
|
164
|
-
[116.85809000025336, 39.669399499787119],
|
|
165
|
-
[116.84589800009269, 39.663244000110581],
|
|
166
|
-
[116.84515800014162, 39.654012999800159],
|
|
167
|
-
[116.82664099968247, 39.643225999680169],
|
|
168
|
-
[116.82472999968979, 39.635278000079666],
|
|
169
|
-
[116.83523600034118, 39.623008999965407],
|
|
170
|
-
[116.82952899976362, 39.618317000329341],
|
|
171
|
-
[116.8064999998752, 39.614707000227952],
|
|
172
|
-
[116.78623199960714, 39.609629999924607],
|
|
173
|
-
[116.77425400032189, 39.592807000242942],
|
|
174
|
-
[116.76915399985728, 39.603968000522855],
|
|
175
|
-
[116.75795799976197, 39.61358899993246],
|
|
176
|
-
[116.71974200009333, 39.615578999970921],
|
|
177
|
-
[116.70013799986884, 39.613477000163471],
|
|
178
|
-
[116.70023799998376, 39.608843000504123],
|
|
179
|
-
[116.72273299952838, 39.592419000336633],
|
|
180
|
-
[116.69779999997013, 39.587856000354179],
|
|
181
|
-
[116.68887700037328, 39.595725999954993],
|
|
182
|
-
[116.6412169995649, 39.605572999894093],
|
|
183
|
-
[116.63739799971802, 39.594882999750666],
|
|
184
|
-
[116.62399000013841, 39.592719999828205],
|
|
185
|
-
[116.60610850020714, 39.607249499864565],
|
|
186
|
-
[116.59725200007983, 39.610777999804895],
|
|
187
|
-
[116.59655100012867, 39.621031000480343],
|
|
188
|
-
[116.5852129997802, 39.623208000149134],
|
|
189
|
-
[116.56590699980825, 39.619136000326193],
|
|
190
|
-
[116.56298099977334, 39.603153999857284],
|
|
191
|
-
[116.5487059997821, 39.59745599969466],
|
|
192
|
-
[116.51852900031315, 39.595600000439731],
|
|
193
|
-
[116.52125199997988, 39.571947999700456],
|
|
194
|
-
[116.49995800006172, 39.554078000299512],
|
|
195
|
-
[116.4716379998938, 39.548292999722207],
|
|
196
|
-
[116.47092100010411, 39.538417000244408],
|
|
197
|
-
[116.43628400000671, 39.527893999708397],
|
|
198
|
-
[116.43356399957895, 39.517308999910483],
|
|
199
|
-
[116.41959400016299, 39.514917000219441],
|
|
200
|
-
[116.4126320001667, 39.521354000286919],
|
|
201
|
-
[116.40081900039661, 39.521937000192452],
|
|
202
|
-
[116.41466899967463, 39.495365999741125],
|
|
203
|
-
[116.43472299996654, 39.485021000219035],
|
|
204
|
-
[116.44212000023788, 39.475140000510692],
|
|
205
|
-
[116.44378000034681, 39.461323000056439],
|
|
206
|
-
[116.44957399954046, 39.456140000260859],
|
|
207
|
-
[116.44490500006577, 39.445557000555198],
|
|
208
|
-
[116.43592899982355, 39.440266000275756],
|
|
209
|
-
[116.42162300020141, 39.439301999887448],
|
|
210
|
-
[116.41238899975258, 39.447252000479466],
|
|
211
|
-
[116.38696700012702, 39.451314999887416],
|
|
212
|
-
[116.37071199965908, 39.451700999701416],
|
|
213
|
-
[116.33808999985365, 39.447437000017601],
|
|
214
|
-
[116.31963799969401, 39.461522000240166],
|
|
215
|
-
[116.31396199964661, 39.471844000500255],
|
|
216
|
-
[116.29802400030746, 39.485875000031285],
|
|
217
|
-
[116.27318699978025, 39.490329000383099],
|
|
218
|
-
[116.24862000001303, 39.50164499971703],
|
|
219
|
-
[116.23962499979393, 39.514977000288411],
|
|
220
|
-
[116.24070800027403, 39.538164000268466],
|
|
221
|
-
[116.21527234624182, 39.577570626783029],
|
|
222
|
-
[116.19470300024329, 39.576789999958578],
|
|
223
|
-
[116.18768000013199, 39.581046000172819],
|
|
224
|
-
[116.14843099959103, 39.578754999743524],
|
|
225
|
-
[116.1411520002647, 39.567832999693223],
|
|
226
|
-
[116.09910300010347, 39.569775000216111],
|
|
227
|
-
[116.09747799980994, 39.573769000039363],
|
|
228
|
-
[116.06061999981318, 39.570354999983294],
|
|
229
|
-
[116.03052999985971, 39.571214000026146],
|
|
230
|
-
[116.00959400026295, 39.586577999874862],
|
|
231
|
-
[116.00207599980763, 39.576821000488849],
|
|
232
|
-
[115.98735499993336, 39.582319000421592],
|
|
233
|
-
[115.98558500014769, 39.592623999897739],
|
|
234
|
-
[115.97089800004278, 39.593344999871874],
|
|
235
|
-
[115.97060099983628, 39.569428000401956],
|
|
236
|
-
[115.95747799990988, 39.564518999752067],
|
|
237
|
-
[115.94432100021402, 39.565253000325754],
|
|
238
|
-
[115.93841999968333, 39.57503199982699],
|
|
239
|
-
[115.92425899955322, 39.583667000531705],
|
|
240
|
-
[115.92285499955869, 39.592481000497855],
|
|
241
|
-
[115.90746400026342, 39.598467000451762],
|
|
242
|
-
[115.90136399954895, 39.595334999910392],
|
|
243
|
-
[115.90239699952201, 39.568145999738135],
|
|
244
|
-
[115.88789799999279, 39.565727999747423],
|
|
245
|
-
[115.88140500004079, 39.54987699992364],
|
|
246
|
-
[115.85963499975549, 39.546750000512191],
|
|
247
|
-
[115.84699699971179, 39.551744999732023],
|
|
248
|
-
[115.84011899999189, 39.542259000252727],
|
|
249
|
-
[115.82233099987582, 39.540334000513781],
|
|
250
|
-
[115.82105699958095, 39.511497999932828],
|
|
251
|
-
[115.80450799994435, 39.508401000106119],
|
|
252
|
-
[115.76231400029098, 39.511631999816984],
|
|
253
|
-
[115.74532800028703, 39.51181400011609],
|
|
254
|
-
[115.73764400027051, 39.523362000256157],
|
|
255
|
-
[115.73206400015351, 39.542379000390611],
|
|
256
|
-
[115.72117599987257, 39.547166999957142],
|
|
257
|
-
[115.71161999986316, 39.560213999976156],
|
|
258
|
-
[115.68609600003049, 39.564934000004143],
|
|
259
|
-
[115.68810700013796, 39.577119999888112],
|
|
260
|
-
[115.68516600031069, 39.589663000047494],
|
|
261
|
-
[115.67496500023458, 39.595443000394198],
|
|
262
|
-
[115.66456299988261, 39.607235000095216],
|
|
263
|
-
[115.65168000023186, 39.600248999891505],
|
|
264
|
-
[115.63778799991633, 39.598150000222404],
|
|
265
|
-
[115.62750299956383, 39.603056999880664],
|
|
266
|
-
[115.62077399952057, 39.59841900003687],
|
|
267
|
-
[115.61224850026815, 39.603204500387449],
|
|
268
|
-
[115.59348300004046, 39.598621000358946],
|
|
269
|
-
[115.58014299999957, 39.588672000212682],
|
|
270
|
-
[115.56553700003258, 39.590947999950288],
|
|
271
|
-
[115.5543260001449, 39.606983000165371],
|
|
272
|
-
[115.53944800022509, 39.617797999777906],
|
|
273
|
-
[115.52660799985938, 39.610432000036838],
|
|
274
|
-
[115.51315399995724, 39.611965999731183],
|
|
275
|
-
[115.51603000038426, 39.638930000319306],
|
|
276
|
-
[115.50055399986729, 39.650881000158108],
|
|
277
|
-
[115.47220300006848, 39.649176999818735],
|
|
278
|
-
[115.47229799995284, 39.65450500000577],
|
|
279
|
-
[115.48521800041044, 39.66768199972455],
|
|
280
|
-
[115.48248300019031, 39.680143999745837],
|
|
281
|
-
[115.49337399971034, 39.690272000052801],
|
|
282
|
-
[115.48593900038463, 39.700375000106249],
|
|
283
|
-
[115.48183099980088, 39.730974000150013],
|
|
284
|
-
[115.4761769998687, 39.74110899988051],
|
|
285
|
-
[115.46252099964443, 39.739534000094068],
|
|
286
|
-
[115.44074600002796, 39.747894999854395],
|
|
287
|
-
[115.43006200016123, 39.77468799975145],
|
|
288
|
-
[115.43823200010684, 39.783634000408824],
|
|
289
|
-
[115.45363600000144, 39.782014000345896],
|
|
290
|
-
[115.47713600002646, 39.797385000517409],
|
|
291
|
-
[115.48585099992374, 39.795188999972424],
|
|
292
|
-
[115.50040100000626, 39.782090000253334],
|
|
293
|
-
[115.50663399965947, 39.787228999818524],
|
|
294
|
-
[115.53813199979197, 39.795076000157337],
|
|
295
|
-
[115.54606449957703, 39.793915499700631],
|
|
296
|
-
[115.56059699975185, 39.803830000054518],
|
|
297
|
-
[115.56314100015709, 39.812388999952418],
|
|
298
|
-
[115.538555000413, 39.825470999786887],
|
|
299
|
-
[115.51977899970109, 39.829847000139011],
|
|
300
|
-
[115.50445199976002, 39.843575000086219],
|
|
301
|
-
[115.51512199988042, 39.856709000520027],
|
|
302
|
-
[115.51894800005027, 39.875119999688309],
|
|
303
|
-
[115.50277799990488, 39.882983999911744],
|
|
304
|
-
[115.51487099999667, 39.900337999798921],
|
|
305
|
-
[115.50054600039766, 39.912326000444637],
|
|
306
|
-
[115.48341399995616, 39.920616000528071],
|
|
307
|
-
[115.46966599998598, 39.935820000192905],
|
|
308
|
-
[115.43545899993296, 39.950857000250437],
|
|
309
|
-
[115.41969299953234, 39.949691000439373],
|
|
310
|
-
[115.41728199986449, 39.954013000099906],
|
|
311
|
-
[115.41956800006324, 39.977795999685668],
|
|
312
|
-
[115.42788799973141, 39.987816000408145],
|
|
313
|
-
[115.4415559996097, 39.991892000415532],
|
|
314
|
-
[115.44240600013688, 40.010442999744669],
|
|
315
|
-
[115.44968100017809, 40.026112000168723],
|
|
316
|
-
[115.46652199979053, 40.032624000097599],
|
|
317
|
-
[115.48430699976825, 40.049386000563516],
|
|
318
|
-
[115.5023390003447, 40.057898000092678],
|
|
319
|
-
[115.50317100004168, 40.064193999953204],
|
|
320
|
-
[115.52180899978555, 40.075222000395058],
|
|
321
|
-
[115.53635899986796, 40.074669000074323],
|
|
322
|
-
[115.54652800026702, 40.080222999891589],
|
|
323
|
-
[115.56993899978511, 40.101490000363299],
|
|
324
|
-
[115.57482200013521, 40.094633999859241],
|
|
325
|
-
[115.59740500014072, 40.092562000535963],
|
|
326
|
-
[115.60055199957515, 40.113817000454276],
|
|
327
|
-
[115.60583899967014, 40.116042999684737],
|
|
328
|
-
[115.64478299963582, 40.116310000306328],
|
|
329
|
-
[115.64889599955075, 40.126421999875447],
|
|
330
|
-
[115.68135099974893, 40.137474000524776],
|
|
331
|
-
[115.70290800010423, 40.133390000148438],
|
|
332
|
-
[115.71879599983561, 40.127681000377891],
|
|
333
|
-
[115.74165399993217, 40.133507000147972],
|
|
334
|
-
[115.74892499978898, 40.14365100029346],
|
|
335
|
-
[115.74408699971536, 40.15244200009829],
|
|
336
|
-
[115.75058800003626, 40.162643000174398],
|
|
337
|
-
[115.761971999808, 40.165109999726781],
|
|
338
|
-
[115.76666699958241, 40.174928000127181],
|
|
339
|
-
[115.78351599956375, 40.177248000095176],
|
|
340
|
-
[115.78771299975517, 40.1670199996733],
|
|
341
|
-
[115.80069400032789, 40.151754999893399],
|
|
342
|
-
[115.81998100032297, 40.148840000365794],
|
|
343
|
-
[115.84761899961723, 40.1481200004377],
|
|
344
|
-
[115.83827300029884, 40.167001999742524],
|
|
345
|
-
[115.85476800014317, 40.183581999909393],
|
|
346
|
-
[115.86610899973061, 40.186261000244997],
|
|
347
|
-
[115.88199600031521, 40.208041000092123],
|
|
348
|
-
[115.87818199979949, 40.213047999865353],
|
|
349
|
-
[115.89276499960511, 40.234459999829198],
|
|
350
|
-
[115.90547600031721, 40.234100000314811],
|
|
351
|
-
[115.91325400017206, 40.24713699987268],
|
|
352
|
-
[115.92720100032602, 40.254417000144485],
|
|
353
|
-
[115.95693199991194, 40.256683000320265],
|
|
354
|
-
[115.96038099978341, 40.264490999759857],
|
|
355
|
-
[115.94052200039005, 40.287843000154396],
|
|
356
|
-
[115.9342659996762, 40.302820000142958],
|
|
357
|
-
[115.93675700033532, 40.312978000034718],
|
|
358
|
-
[115.92696500023465, 40.317553999717347],
|
|
359
|
-
[115.91662299995153, 40.33552099999423],
|
|
360
|
-
[115.91029799965304, 40.365737000362344],
|
|
361
|
-
[115.89768299977072, 40.358995999765625],
|
|
362
|
-
[115.88288099975841, 40.360191000014709],
|
|
363
|
-
[115.87019400015299, 40.357177000418289],
|
|
364
|
-
[115.85862800008215, 40.361665999686181],
|
|
365
|
-
[115.84283500023514, 40.375762000416046],
|
|
366
|
-
[115.82649999967532, 40.377622999901575],
|
|
367
|
-
[115.81205399989221, 40.385200000379768],
|
|
368
|
-
[115.80894599955832, 40.398353999937171],
|
|
369
|
-
[115.79888999987361, 40.418767999743466],
|
|
370
|
-
[115.79091399988124, 40.429341999933399],
|
|
371
|
-
[115.77545600019437, 40.437318999971922],
|
|
372
|
-
[115.76590400036935, 40.448360000113951],
|
|
373
|
-
[115.76289400005817, 40.461238000433411],
|
|
374
|
-
[115.77105300039568, 40.484930000319309],
|
|
375
|
-
[115.73935800017159, 40.49103200022671],
|
|
376
|
-
[115.7297139997014, 40.503442000547921],
|
|
377
|
-
[115.73427300039873, 40.511702000147238],
|
|
378
|
-
[115.74825300027578, 40.538638000343497],
|
|
379
|
-
[115.75488699953542, 40.537898000392431],
|
|
380
|
-
[115.78519899983405, 40.56002500005377],
|
|
381
|
-
[115.80741500000227, 40.555698000162636],
|
|
382
|
-
[115.81534199953376, 40.56211900039159],
|
|
383
|
-
[115.82140000010997, 40.586302000437001],
|
|
384
|
-
[115.88216099983038, 40.595322000010356],
|
|
385
|
-
[115.90368699965541, 40.617244000110588],
|
|
386
|
-
[115.92184099956251, 40.611557000455264],
|
|
387
|
-
[115.9378369997778, 40.610160999930258],
|
|
388
|
-
[115.9476859998091, 40.600224000337391],
|
|
389
|
-
[115.96639300003699, 40.600272999899062],
|
|
390
|
-
[115.97623899992993, 40.577855000308091],
|
|
391
|
-
[115.9966850003126, 40.574458000136644],
|
|
392
|
-
[115.99992400039241, 40.586976000042398],
|
|
393
|
-
[116.01369999985513, 40.597148999726585],
|
|
394
|
-
[116.02460900020526, 40.595849000031365],
|
|
395
|
-
[116.05522199999541, 40.607584999847916],
|
|
396
|
-
[116.08804400003066, 40.611162000226159],
|
|
397
|
-
[116.10474400033536, 40.614640000535644],
|
|
398
|
-
[116.11397999997712, 40.623776000062378],
|
|
399
|
-
[116.10515200026464, 40.642482000244172],
|
|
400
|
-
[116.10744199974852, 40.647407999879363],
|
|
401
|
-
[116.12581699995462, 40.65417000054515],
|
|
402
|
-
[116.13611199986894, 40.665669000224227],
|
|
403
|
-
[116.15187500013121, 40.66204700046876],
|
|
404
|
-
[116.15908900005741, 40.66622599983009],
|
|
405
|
-
[116.17456100038987, 40.711034000418863],
|
|
406
|
-
[116.1802449999069, 40.717150000072479],
|
|
407
|
-
[116.19712100023401, 40.714190000268331],
|
|
408
|
-
[116.21329899984903, 40.731943999715838],
|
|
409
|
-
[116.20827200005283, 40.743361000110099],
|
|
410
|
-
[116.2187850001277, 40.753307000118014],
|
|
411
|
-
[116.2296949996246, 40.774113000015006],
|
|
412
|
-
[116.22893499965062, 40.781808999685666],
|
|
413
|
-
[116.24174599957826, 40.790348000459915],
|
|
414
|
-
[116.26323400034892, 40.773507999994251],
|
|
415
|
-
[116.26807100037638, 40.76192099985434],
|
|
416
|
-
[116.28162100020904, 40.762283000360242],
|
|
417
|
-
[116.30144599983305, 40.750930000219398],
|
|
418
|
-
[116.30147999960241, 40.762019999923098],
|
|
419
|
-
[116.3078049999009, 40.769457000240436],
|
|
420
|
-
[116.33143299953338, 40.771467000301868],
|
|
421
|
-
[116.34530299973369, 40.768607999759411],
|
|
422
|
-
[116.37592700003108, 40.771737000162489],
|
|
423
|
-
[116.38894299951983, 40.776857999796903],
|
|
424
|
-
[116.40408399987678, 40.777764000208492],
|
|
425
|
-
[116.40960399992468, 40.760440999952266],
|
|
426
|
-
[116.43251899995198, 40.765394999979321],
|
|
427
|
-
[116.44761700012452, 40.764485000282605],
|
|
428
|
-
[116.45927099975688, 40.770968999819559],
|
|
429
|
-
[116.45250399975987, 40.795263000487125],
|
|
430
|
-
[116.43621100023756, 40.805341000287001],
|
|
431
|
-
[116.4318469995394, 40.816610000151456],
|
|
432
|
-
[116.4000955003072, 40.831625500116786],
|
|
433
|
-
[116.39901800008067, 40.839060000318796],
|
|
434
|
-
[116.38331299979518, 40.860380999683457],
|
|
435
|
-
[116.3705330003977, 40.867256000164332],
|
|
436
|
-
[116.32813699952294, 40.904180000506699],
|
|
437
|
-
[116.32816399986871, 40.918047999715441],
|
|
438
|
-
[116.33475499984343, 40.929256000364205],
|
|
439
|
-
[116.35962400004757, 40.941212000433552],
|
|
440
|
-
[116.37209399953849, 40.934479000205727],
|
|
441
|
-
[116.38561599987861, 40.912452999806135],
|
|
442
|
-
[116.3956840001166, 40.903712000508449],
|
|
443
|
-
[116.40905799992686, 40.898799999720268],
|
|
444
|
-
[116.42416499961507, 40.901439000009873],
|
|
445
|
-
[116.43076399995869, 40.897314000440815],
|
|
446
|
-
[116.47054299975969, 40.898018999677163],
|
|
447
|
-
[116.46905599953482, 40.910427999952276],
|
|
448
|
-
[116.46127799967996, 40.929627000385835],
|
|
449
|
-
[116.44153600028619, 40.952657000320357],
|
|
450
|
-
[116.44961599967871, 40.976687000504739],
|
|
451
|
-
[116.45755799990184, 40.98276700029686],
|
|
452
|
-
[116.46803700020746, 40.976384000021653],
|
|
453
|
-
[116.47932199991044, 40.980642000328089],
|
|
454
|
-
[116.48700399983477, 40.976654999928371],
|
|
455
|
-
[116.51061699967488, 40.973735000170166],
|
|
456
|
-
[116.51340899982551, 40.979774999916344],
|
|
457
|
-
[116.53528999983371, 40.988904000019659],
|
|
458
|
-
[116.56804300028432, 40.986561999936384],
|
|
459
|
-
[116.57986899975458, 40.977936999692815],
|
|
460
|
-
[116.59386899965466, 40.973917000469271],
|
|
461
|
-
[116.60774600017783, 40.982122000230163],
|
|
462
|
-
[116.60967300000902, 41.002887000035059],
|
|
463
|
-
[116.61595199998487, 41.014323000406193],
|
|
464
|
-
[116.61602499975402, 41.025954999923385],
|
|
465
|
-
[116.60801399994625, 41.035367000486758],
|
|
466
|
-
[116.6123209998143, 41.047186999680321],
|
|
467
|
-
[116.62508800041098, 41.058909499773677],
|
|
468
|
-
[116.64297100041142, 41.056012000153714],
|
|
469
|
-
[116.65287100009664, 41.049075000410994],
|
|
470
|
-
[116.67762899967863, 41.03978099989331],
|
|
471
|
-
[116.68335000000252, 41.042909000250233],
|
|
472
|
-
[116.69102200036514, 41.019785000477441],
|
|
473
|
-
[116.67684999972778, 40.993460999725414],
|
|
474
|
-
[116.6785590002977, 40.980895000304088],
|
|
475
|
-
[116.67156599977113, 40.970236999837709],
|
|
476
|
-
[116.68114499994181, 40.960232999853133],
|
|
477
|
-
[116.68509000020345, 40.948755000243125],
|
|
478
|
-
[116.70006600014585, 40.932677999889847],
|
|
479
|
-
[116.71170499998584, 40.93438900055196],
|
|
480
|
-
[116.71835700007557, 40.927808000139123],
|
|
481
|
-
[116.70746699970232, 40.908468000397932],
|
|
482
|
-
[116.74565599992457, 40.889625000193632],
|
|
483
|
-
[116.75230399982979, 40.882044000430312],
|
|
484
|
-
[116.76474799992036, 40.879257000510222],
|
|
485
|
-
[116.7867320001817, 40.862703999789801],
|
|
486
|
-
[116.79592200040008, 40.849587000139991],
|
|
487
|
-
[116.81714699983422, 40.841258000056712],
|
|
488
|
-
[116.83130299973368, 40.839947999900346],
|
|
489
|
-
[116.8499150000772, 40.833687999901315],
|
|
490
|
-
[116.85493200031158, 40.824013999846272],
|
|
491
|
-
[116.86924800039492, 40.820008000369],
|
|
492
|
-
[116.8803529998911, 40.799658999962958],
|
|
493
|
-
[116.89012199983051, 40.792468000198085],
|
|
494
|
-
[116.89212000023792, 40.7756109998478],
|
|
495
|
-
[116.91757599963273, 40.772347000413788],
|
|
496
|
-
[116.92217300028381, 40.755182000249192],
|
|
497
|
-
[116.92045999952938, 40.743404000294447],
|
|
498
|
-
[116.93492500018863, 40.738389000152267],
|
|
499
|
-
[116.93889299971227, 40.726748000220084],
|
|
500
|
-
[116.95002799969245, 40.721448000424914],
|
|
501
|
-
[116.95872199952078, 40.708084000176541],
|
|
502
|
-
[116.99815799969201, 40.695221999695605],
|
|
503
|
-
[117.0244289997986, 40.690629000128297],
|
|
504
|
-
[117.04317500002628, 40.698750000512177],
|
|
505
|
-
[117.07748799957153, 40.700459000182775],
|
|
506
|
-
[117.10545799978695, 40.705345999818064],
|
|
507
|
-
[117.11025299967628, 40.698221000398917],
|
|
508
|
-
[117.14603499951568, 40.695505000155663],
|
|
509
|
-
[117.16028300006042, 40.697547999940298],
|
|
510
|
-
[117.17229099982978, 40.691999000353633],
|
|
511
|
-
[117.17661000025134, 40.696039000499525],
|
|
512
|
-
[117.19972299951689, 40.693174999726523],
|
|
513
|
-
[117.22505200024966, 40.683227999672511],
|
|
514
|
-
[117.23570699967831, 40.675075000510901],
|
|
515
|
-
[117.25506600029576, 40.679694000377879],
|
|
516
|
-
[117.27194299976964, 40.664929000273219],
|
|
517
|
-
[117.2854929996023, 40.658511000182557],
|
|
518
|
-
[117.30436000001407, 40.657672000162734],
|
|
519
|
-
[117.33012099998427, 40.661833000492607],
|
|
520
|
-
[117.33962300020141, 40.672229999714773],
|
|
521
|
-
[117.35536599954128, 40.673091999895917],
|
|
522
|
-
[117.384078999846, 40.681982999815659],
|
|
523
|
-
[117.4140479996156, 40.684604000174545],
|
|
524
|
-
[117.44372300021632, 40.677689999693769],
|
|
525
|
-
[117.45812699986118, 40.671983000015473],
|
|
526
|
-
[117.47341899998696, 40.675956999815753],
|
|
527
|
-
[117.48856399962892, 40.673140000310809],
|
|
528
|
-
[117.49923699988767, 40.665892999762207],
|
|
529
|
-
[117.49647900040566, 40.644103000353255],
|
|
530
|
-
[117.49460600036673, 40.634837000227435],
|
|
531
|
-
[117.47236599999098, 40.633964000438311],
|
|
532
|
-
[117.46527100015658, 40.645482000094262],
|
|
533
|
-
[117.41572999983964, 40.636108000383956],
|
|
534
|
-
[117.4069179999658, 40.604817999950797],
|
|
535
|
-
[117.41653099990583, 40.580576999928667],
|
|
536
|
-
[117.41317399978038, 40.567267000371828],
|
|
537
|
-
[117.39722800007223, 40.572430000144436],
|
|
538
|
-
[117.38268700040476, 40.559806999893169],
|
|
539
|
-
[117.36949600004039, 40.565092999942067],
|
|
540
|
-
[117.35951300012493, 40.574158999838005],
|
|
541
|
-
[117.34363600000142, 40.578349999752731],
|
|
542
|
-
[117.32782800036193, 40.574859999789226],
|
|
543
|
-
[117.30399000003854, 40.575075999857575],
|
|
544
|
-
[117.28958500034753, 40.565652000539444],
|
|
545
|
-
[117.25965199954021, 40.556624999743974],
|
|
546
|
-
[117.24328700029491, 40.546958000011728],
|
|
547
|
-
[117.24401499969258, 40.536001000146086],
|
|
548
|
-
[117.25383100000067, 40.517962000146269],
|
|
549
|
-
[117.24098300016544, 40.510761999966405],
|
|
550
|
-
[117.20726800031798, 40.511192000010851],
|
|
551
|
-
[117.20282799971244, 40.495328000486893],
|
|
552
|
-
[117.21062899972867, 40.493697999962762],
|
|
553
|
-
[117.2294129999101, 40.467607000063083],
|
|
554
|
-
[117.2283359997067, 40.456603999874744],
|
|
555
|
-
[117.25700799991932, 40.439871999892944],
|
|
556
|
-
[117.25051099978282, 40.428532000351595],
|
|
557
|
-
[117.24355400001718, 40.427793000446684],
|
|
558
|
-
[117.22776600040061, 40.415363500125466],
|
|
559
|
-
[117.22602500015364, 40.402562999782674],
|
|
560
|
-
[117.23323099971094, 40.397383000125387],
|
|
561
|
-
[117.22219499979951, 40.384657999667013],
|
|
562
|
-
[117.21720199977256, 40.374115000007293],
|
|
563
|
-
[117.22023400019896, 40.367758000031756],
|
|
564
|
-
[117.23537799979488, 40.369135999726666],
|
|
565
|
-
[117.24795999995411, 40.352986000503563],
|
|
566
|
-
[117.25587199969311, 40.336402000152248],
|
|
567
|
-
[117.26859700015154, 40.331047000518709],
|
|
568
|
-
[117.26492699998107, 40.324208999945427],
|
|
569
|
-
[117.26795999955436, 40.307628999778558],
|
|
570
|
-
[117.28191800021557, 40.300241999968364],
|
|
571
|
-
[117.28785799984689, 40.291870999746891],
|
|
572
|
-
[117.28936400004864, 40.277067999688484],
|
|
573
|
-
[117.33003699970789, 40.276252999876078],
|
|
574
|
-
[117.33572500030857, 40.242677000143487],
|
|
575
|
-
[117.34703500026512, 40.234390000198403],
|
|
576
|
-
[117.36466300019731, 40.231666000485575],
|
|
577
|
-
[117.38359500000934, 40.225653000185844]
|
|
578
|
-
]
|
|
579
|
-
]
|
|
580
|
-
},
|
|
581
|
-
"properties": {
|
|
582
|
-
"code": "11",
|
|
583
|
-
"name": "北京市",
|
|
584
|
-
"parent_code": "0",
|
|
585
|
-
"level": 1,
|
|
586
|
-
"lon": 116.43424180474648,
|
|
587
|
-
"lat": 40.201253765664767
|
|
588
|
-
},
|
|
589
|
-
"bbox": [115.41728199986449, 39.439301999887448, 117.49923699988767, 41.058909499773677]
|
|
590
|
-
};
|
|
591
|
-
const polygonModel1 = {
|
|
592
|
-
fillColor: '#000',
|
|
593
|
-
stroke: 'red',
|
|
594
|
-
width: 1,
|
|
595
|
-
text: '测试1',
|
|
596
|
-
geo: g1,
|
|
597
|
-
id: 'ceshi1',
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
const polygonModel2 = {
|
|
601
|
-
fillColor: '#000',
|
|
602
|
-
stroke: 'red',
|
|
603
|
-
width: 1,
|
|
604
|
-
text: '测试2',
|
|
605
|
-
geo: g2,
|
|
606
|
-
id: 'ceshi2',
|
|
607
|
-
type: 1
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
const polygonModel3 = {
|
|
611
|
-
fillColor: '#000',
|
|
612
|
-
stroke: 'red',
|
|
613
|
-
width: 1,
|
|
614
|
-
text: '测试3',
|
|
615
|
-
geo: g3,
|
|
616
|
-
id: 'ceshi3',
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
const polygonModel4 = {
|
|
620
|
-
fillColor: '#000',
|
|
621
|
-
stroke: 'red',
|
|
622
|
-
width: 1,
|
|
623
|
-
text: '测试4',
|
|
624
|
-
geo: g4,
|
|
625
|
-
id: 'ceshi4',
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
const polygonModel5 = {
|
|
629
|
-
fillColor: 'transparent',
|
|
630
|
-
stroke: '#F7B500',
|
|
631
|
-
strokeWidth: 4,
|
|
632
|
-
lineDash: [1, 2, 3, 4, 5, 6],
|
|
633
|
-
geo: g5,
|
|
634
|
-
id: 'ceshi5',
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
const polygonModel6 = {
|
|
638
|
-
fillColor: 'transparent',
|
|
639
|
-
stroke: '#F7B500',
|
|
640
|
-
strokeWidth: 4,
|
|
641
|
-
lineDash: [1, 2, 3, 4, 5, 6],
|
|
642
|
-
geo: g5,
|
|
643
|
-
id: 'ceshi6',
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
|
|
647
5
|
export default {
|
|
648
|
-
components: {
|
|
649
|
-
RyMap,
|
|
650
|
-
RyMapTool,
|
|
651
|
-
RyPolygon,
|
|
652
|
-
RyPolygons,
|
|
653
|
-
RyClustersMarker,
|
|
654
|
-
RyPolygonGeo,
|
|
655
|
-
RyLines
|
|
656
|
-
},
|
|
657
|
-
data() {
|
|
658
|
-
return {
|
|
659
|
-
map: null,
|
|
660
|
-
lMap: null,
|
|
661
|
-
polygonColorObj: null,
|
|
662
|
-
darws: new Map(),
|
|
663
|
-
bbox: [],
|
|
664
|
-
isClear: false,
|
|
665
|
-
geoJson: null,
|
|
666
|
-
colors: [],
|
|
667
|
-
modelArr: [polygonModel1, polygonModel2, polygonModel3, polygonModel4],
|
|
668
|
-
modelArr2: [{
|
|
669
|
-
id: 'ceshi1',
|
|
670
|
-
x: 120.15535003220648,
|
|
671
|
-
y: 30.179378795342608
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
id: 'ceshi2',
|
|
675
|
-
x: 120.16369976775891,
|
|
676
|
-
y: 30.1967116895034
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
id: 'ceshi3',
|
|
680
|
-
x: 120.156817,
|
|
681
|
-
y: 30.1753985
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
id: 'ceshi4',
|
|
685
|
-
x: 120.1538245,
|
|
686
|
-
y: 30.183076
|
|
687
|
-
},
|
|
688
|
-
],
|
|
689
|
-
center: [120.2687149, 29.8142052],
|
|
690
|
-
polygonColors: [],
|
|
691
|
-
remove: 'ceshi1',
|
|
692
|
-
removes: [],
|
|
693
|
-
ranges: [],
|
|
694
|
-
restFit: true,
|
|
695
|
-
range: 'ceshi2',
|
|
696
|
-
isFit: false,
|
|
697
|
-
insert: null,
|
|
698
|
-
showPolygon: null,
|
|
699
|
-
showPolygons: [{
|
|
700
|
-
id: 'ceshi2',
|
|
701
|
-
isShow: false
|
|
702
|
-
}],
|
|
703
|
-
inserts: [],
|
|
704
|
-
isShowAll: true,
|
|
705
|
-
// isShow:true,
|
|
706
|
-
polygonModel: null,
|
|
707
|
-
geo: g1,
|
|
708
|
-
mapTool: null,
|
|
709
|
-
isCheckPoint: null,
|
|
710
|
-
gpsType: 0,
|
|
711
|
-
isRyMapTool: true,
|
|
712
|
-
maxZoom: 18,
|
|
713
|
-
polygonModel5: polygonModel5,
|
|
714
|
-
polygonModel6: polygonModel6,
|
|
715
|
-
src: require("@/assets/1.png"),
|
|
716
|
-
lineData1: null,
|
|
717
|
-
lineData2: null,
|
|
718
|
-
clearLiens: false,
|
|
719
|
-
// startMarkerDto:null,
|
|
720
|
-
// endMarkerDto:null,
|
|
721
|
-
startMarkerDto: {
|
|
722
|
-
url: require('@/assets/startpoint.png'),
|
|
723
|
-
height: 23,
|
|
724
|
-
offset: [8, -11],
|
|
725
|
-
width: 28
|
|
726
|
-
},
|
|
727
|
-
endMarkerDto: {
|
|
728
|
-
url: require('@/assets/stoppoint.png'),
|
|
729
|
-
height: 16,
|
|
730
|
-
offset: [0, -8],
|
|
731
|
-
width: 16
|
|
732
|
-
},
|
|
733
|
-
lineAppend: [],
|
|
734
|
-
isShowPaly: true,
|
|
735
|
-
layerArr: [2, 2],
|
|
736
|
-
};
|
|
737
|
-
},
|
|
738
|
-
created() {
|
|
739
|
-
console.log(this.startMarkerDto);
|
|
740
|
-
const obj = {
|
|
741
|
-
isAppend: false,
|
|
742
|
-
color: 'green',
|
|
743
|
-
width: 2,
|
|
744
|
-
pointArr: [],
|
|
745
|
-
// creaTime:[],
|
|
746
|
-
playbackColor: '#1890FF',
|
|
747
|
-
zIndex: 1,
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
const obj2 = {
|
|
751
|
-
isAppend: false,
|
|
752
|
-
color: 'red',
|
|
753
|
-
width: 2,
|
|
754
|
-
pointArr: [],
|
|
755
|
-
// creaTime:[],
|
|
756
|
-
playbackColor: '#1890FF',
|
|
757
|
-
zIndex: 1,
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
const obj3 = {
|
|
762
|
-
isAppend: false,
|
|
763
|
-
color: 'red',
|
|
764
|
-
width: 2,
|
|
765
|
-
pointArr: [],
|
|
766
|
-
// creaTime:[],
|
|
767
|
-
zIndex: 1,
|
|
768
|
-
playbackColor: '#1890FF',
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
const obj4 = {
|
|
772
|
-
isAppend: false,
|
|
773
|
-
color: 'red',
|
|
774
|
-
width: 2,
|
|
775
|
-
pointArr: [],
|
|
776
|
-
// creaTime:[],
|
|
777
|
-
zIndex: 1,
|
|
778
|
-
playbackColor: '#1890FF',
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
const obj5 = {
|
|
782
|
-
isAppend: false,
|
|
783
|
-
color: 'green',
|
|
784
|
-
width: 2,
|
|
785
|
-
pointArr: [],
|
|
786
|
-
// creaTime:[],
|
|
787
|
-
zIndex: 1,
|
|
788
|
-
playbackColor: '#1890FF',
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
const obj6 = {
|
|
792
|
-
isAppend: false,
|
|
793
|
-
color: 'green',
|
|
794
|
-
width: 2,
|
|
795
|
-
pointArr: [],
|
|
796
|
-
// creaTime:[],
|
|
797
|
-
zIndex: 1,
|
|
798
|
-
playbackColor: '#1890FF',
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
console.log(lineDataArr);
|
|
802
|
-
|
|
803
|
-
lineDataArr[0].forEach(r => {
|
|
804
|
-
obj.pointArr.push([r.lng, r.lat]);
|
|
805
|
-
// obj.creaTime.push(r.creaTime);
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
this.lineData1 = obj;
|
|
809
|
-
// console.log(this.lineData1);
|
|
810
|
-
// const len2 = obj.pointArr.length;
|
|
811
|
-
// let i2 = 0;
|
|
812
|
-
// let setId = setInterval(r => {
|
|
813
|
-
// this.lineAppend = obj.pointArr[i2];
|
|
814
|
-
// i2 += 1;
|
|
815
|
-
// if (i2 >= len2) {
|
|
816
|
-
// clearInterval(setId);
|
|
817
|
-
// }
|
|
818
|
-
// }, 1000);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
lineDataArr[1].forEach(r => {
|
|
822
|
-
obj2.pointArr.push([r.lng, r.lat]);
|
|
823
|
-
// obj2.creaTime.push(r.creaTime);
|
|
824
|
-
// console.log('obj2=============================',r);
|
|
825
|
-
});
|
|
826
|
-
// this.lineData1=obj;
|
|
827
|
-
// setTimeout(r=> {
|
|
828
|
-
// this.lineData1=obj;
|
|
829
|
-
|
|
830
|
-
// },3000);
|
|
831
|
-
|
|
832
|
-
|
|
833
6
|
|
|
834
|
-
// lineDataArr[2].forEach(r => {
|
|
835
|
-
// obj3.pointArr.push([r.lng, r.lat]);
|
|
836
|
-
// // obj3.creaTime.push(r.creaTime);
|
|
837
|
-
// });
|
|
838
|
-
|
|
839
|
-
// lineDataArr[3].forEach(r => {
|
|
840
|
-
// obj4.pointArr.push([r.lng, r.lat]);
|
|
841
|
-
// // obj4.creaTime.push(r.creaTime);
|
|
842
|
-
// });
|
|
843
|
-
|
|
844
|
-
// lineDataArr[4].forEach(r => {
|
|
845
|
-
// obj5.pointArr.push([r.lng, r.lat]);
|
|
846
|
-
// // obj5.creaTime.push(r.creaTime);
|
|
847
|
-
// });
|
|
848
|
-
|
|
849
|
-
// lineDataArr[5].forEach(r => {
|
|
850
|
-
// obj6.pointArr.push([r.lng, r.lat]);
|
|
851
|
-
// // obj6.creaTime.push(r.creaTime);
|
|
852
|
-
// });
|
|
853
|
-
|
|
854
|
-
setTimeout(r=> {
|
|
855
|
-
this.lineData2=obj2;
|
|
856
|
-
console.log(this.lineData2);
|
|
857
|
-
},3000);
|
|
858
|
-
|
|
859
|
-
// setTimeout(r=> {
|
|
860
|
-
// this.lineData2=obj3;
|
|
861
|
-
// },2000);
|
|
862
|
-
|
|
863
|
-
// setTimeout(r=> {
|
|
864
|
-
// this.lineData2=obj4;
|
|
865
|
-
// },3000);
|
|
866
|
-
|
|
867
|
-
// setTimeout(r=> {
|
|
868
|
-
// this.lineData2=obj5;
|
|
869
|
-
// },4000);
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
// setTimeout(r=> {
|
|
875
|
-
// this.lineData2=obj6;
|
|
876
|
-
// },5000);
|
|
877
|
-
// obj6.forEach(r=> {
|
|
878
|
-
|
|
879
|
-
// });
|
|
880
|
-
// let i=0;
|
|
881
|
-
// setTimeout(r=> {
|
|
882
|
-
// let intId = setInterval(r=> {
|
|
883
|
-
// this.lineAppend= obj3.pointArr[i];
|
|
884
|
-
// console.log(this.lineAppend);
|
|
885
|
-
// i+=1;
|
|
886
|
-
// if(i==obj3.pointArr.length){
|
|
887
|
-
// clearInterval(intId);
|
|
888
|
-
// }
|
|
889
|
-
// },2000);
|
|
890
|
-
// },3000);
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
// setTimeout(r=> {
|
|
894
|
-
// this.lineData1=null;
|
|
895
|
-
// },10000);
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
// setTimeout(r=> {
|
|
899
|
-
// // this.lineData1=null;
|
|
900
|
-
// this.clearLiens=true;
|
|
901
|
-
// },10000);
|
|
902
|
-
|
|
903
|
-
// amworkdatalist.push({
|
|
904
|
-
// X,
|
|
905
|
-
// Y,
|
|
906
|
-
// isNJOpt: isWorking,
|
|
907
|
-
// creaTime: toDateString(new Date(item.creaTime))
|
|
908
|
-
// });
|
|
909
|
-
|
|
910
|
-
// {
|
|
911
|
-
// color: 'rgb(0,0,255)',
|
|
912
|
-
// width: 2,
|
|
913
|
-
// pointArr: [],
|
|
914
|
-
// zIndex: 1000,
|
|
915
|
-
// }
|
|
916
|
-
|
|
917
|
-
// console.log(polygonModel5);
|
|
918
|
-
// console.log(lineData1);
|
|
919
|
-
// console.log(lineData2);
|
|
920
|
-
|
|
921
|
-
// setTimeout(r=> {this.colors=['red','#000']},3000);
|
|
922
|
-
// setTimeout(r=> {this.isClear=true;}, 5000);
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
},
|
|
926
|
-
methods: {
|
|
927
|
-
onClick10() {
|
|
928
|
-
const arr = new Array();
|
|
929
|
-
this.darws.forEach(r => {
|
|
930
|
-
arr.push({
|
|
931
|
-
id: r.Id,
|
|
932
|
-
mu: r.getAreaMu(),
|
|
933
|
-
len: r.formatLengthNew(),
|
|
934
|
-
coordinates: r.getCoordinates(),
|
|
935
|
-
center: r.getCenterPoint(),
|
|
936
|
-
});
|
|
937
|
-
});
|
|
938
|
-
exportToTxt('地块数据', JSON.stringify(arr));
|
|
939
|
-
},
|
|
940
|
-
onShowPaly(b) {
|
|
941
|
-
this.isShowPaly = b;
|
|
942
|
-
|
|
943
|
-
},
|
|
944
|
-
load(obj) {
|
|
945
|
-
this.lMap = obj.mapServices;
|
|
946
|
-
this.map = obj.map;
|
|
947
|
-
// console.log(obj);
|
|
948
|
-
// let g10 = GPS.convertGCJ02(gJson2);
|
|
949
|
-
// convertWGS84
|
|
950
|
-
// convertWGS84,convertGCJ02
|
|
951
|
-
// const geo = createPolygonBoundary(g5);
|
|
952
|
-
// this.map.addLayer(geo );
|
|
953
|
-
},
|
|
954
|
-
drawSuccess(obj) {
|
|
955
|
-
this.polygonModel = {
|
|
956
|
-
fillColor: '#000',
|
|
957
|
-
stroke: '#fff',
|
|
958
|
-
width: 4,
|
|
959
|
-
text: '',
|
|
960
|
-
geo: obj.geoJson,
|
|
961
|
-
id: 'ceshi',
|
|
962
|
-
playbackColor: '#1890FF',
|
|
963
|
-
};
|
|
964
|
-
},
|
|
965
|
-
drawError(obj) {},
|
|
966
|
-
mapClick(e) {
|
|
967
|
-
// alert(e);
|
|
968
|
-
},
|
|
969
|
-
onLoad(e) {},
|
|
970
|
-
crossHairClick(e) {
|
|
971
|
-
// console.log(e);
|
|
972
|
-
},
|
|
973
|
-
mapMoveend(e) {
|
|
974
|
-
// alert(1);
|
|
975
|
-
// console.log(e);
|
|
976
|
-
},
|
|
977
|
-
loadDrawPolygonEvent(e) {
|
|
978
|
-
this.mapTool = e;
|
|
979
|
-
},
|
|
980
|
-
clusterCallback({
|
|
981
|
-
id,
|
|
982
|
-
isShow
|
|
983
|
-
}) {
|
|
984
|
-
setTimeout(r => {
|
|
985
|
-
this.showPolygon = {
|
|
986
|
-
id,
|
|
987
|
-
isShow
|
|
988
|
-
};
|
|
989
|
-
this.isCheckPoint = {
|
|
990
|
-
id,
|
|
991
|
-
isShow
|
|
992
|
-
};
|
|
993
|
-
}, 50);
|
|
994
|
-
},
|
|
995
|
-
changeSwitchMap(obj) {
|
|
996
|
-
if (obj.mapType == 2) {
|
|
997
|
-
this.gpsType = 0;
|
|
998
|
-
return;
|
|
999
|
-
}
|
|
1000
|
-
this.gpsType = obj.mapType;
|
|
1001
|
-
},
|
|
1002
|
-
onClick() {
|
|
1003
|
-
this.isRyMapTool = !this.isRyMapTool;
|
|
1004
|
-
},
|
|
1005
|
-
onClick2() {
|
|
1006
|
-
this.maxZoom = 28;
|
|
1007
|
-
},
|
|
1008
|
-
onClick3() {
|
|
1009
|
-
this.maxZoom = 10;
|
|
1010
|
-
},
|
|
1011
|
-
onShow(){
|
|
1012
|
-
this.isShowAll=true;
|
|
1013
|
-
},
|
|
1014
|
-
onHide(){
|
|
1015
|
-
this.isShowAll=false
|
|
1016
|
-
},
|
|
1017
|
-
trackPlayEvent(obj) {
|
|
1018
|
-
console.log(obj);
|
|
1019
|
-
},
|
|
1020
|
-
drawLineEvent({
|
|
1021
|
-
draw,
|
|
1022
|
-
id,
|
|
1023
|
-
type
|
|
1024
|
-
}) {
|
|
1025
|
-
console.log('drawLineEvent');
|
|
1026
|
-
console.log(draw);
|
|
1027
|
-
console.log(id, type);
|
|
1028
|
-
},
|
|
1029
|
-
drawPolygonEvent({
|
|
1030
|
-
draw,
|
|
1031
|
-
id,
|
|
1032
|
-
type
|
|
1033
|
-
}) {
|
|
1034
|
-
console.log('drawLineEvent');
|
|
1035
|
-
console.log(draw);
|
|
1036
|
-
console.log(id, type);
|
|
1037
|
-
if (!this.darws.has(id) && !type) {
|
|
1038
|
-
this.darws.set(id, draw);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
if (this.darws.has(id) && type) {
|
|
1042
|
-
let dto = this.darws.get(id);
|
|
1043
|
-
dto = null;
|
|
1044
|
-
this.darws.delete(id);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
console.log(this.darws);
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
</script>
|
|
1053
|
-
|
|
1054
|
-
<style lang="scss" scoped>
|
|
1055
|
-
.map-style {
|
|
1056
|
-
height: 100vh;
|
|
1057
|
-
position: relative;
|
|
1058
7
|
}
|
|
1059
|
-
</
|
|
8
|
+
</script>
|
|
9
|
+
<style scoped></style>
|