ry-vue-map 0.1.2 → 0.1.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/lib/ryui.common.js +38444 -73751
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +38444 -73751
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +6 -13
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryClustersMarker/src/index.vue +1 -1
- package/src/components/maps/ryMap/src/index.vue +3 -2
- package/src/utils/lMapServices.js +2 -3
- package/src/views/map/index.vue +11 -3
- package/lib/ryui.common.0.js +0 -6852
- package/lib/ryui.common.0.js.gz +0 -0
- package/lib/ryui.common.2.js +0 -1034
- package/lib/ryui.common.2.js.gz +0 -0
- package/lib/ryui.common.3.js +0 -268
- package/lib/ryui.common.4.js +0 -163
- package/lib/ryui.common.5.js +0 -144
- package/lib/ryui.common.6.js +0 -177
- package/lib/ryui.common.7.js +0 -2373
- package/lib/ryui.common.7.js.gz +0 -0
- package/lib/ryui.common.8.js +0 -47
- package/lib/ryui.common.8.js.gz +0 -0
- package/lib/ryui.common.9.js +0 -23
- package/lib/ryui.umd.0.js +0 -6852
- package/lib/ryui.umd.0.js.gz +0 -0
- package/lib/ryui.umd.2.js +0 -1034
- package/lib/ryui.umd.2.js.gz +0 -0
- package/lib/ryui.umd.3.js +0 -268
- package/lib/ryui.umd.4.js +0 -163
- package/lib/ryui.umd.5.js +0 -144
- package/lib/ryui.umd.6.js +0 -177
- package/lib/ryui.umd.7.js +0 -2373
- package/lib/ryui.umd.7.js.gz +0 -0
- package/lib/ryui.umd.8.js +0 -47
- package/lib/ryui.umd.8.js.gz +0 -0
- package/lib/ryui.umd.9.js +0 -23
- package/lib/ryui.umd.min.0.js +0 -3
- package/lib/ryui.umd.min.0.js.gz +0 -0
- package/lib/ryui.umd.min.2.js +0 -1
- package/lib/ryui.umd.min.2.js.gz +0 -0
- package/lib/ryui.umd.min.3.js +0 -1
- package/lib/ryui.umd.min.4.js +0 -1
- package/lib/ryui.umd.min.5.js +0 -1
- package/lib/ryui.umd.min.6.js +0 -1
- package/lib/ryui.umd.min.7.js +0 -2
- package/lib/ryui.umd.min.7.js.gz +0 -0
- package/lib/ryui.umd.min.8.js +0 -1
- package/lib/ryui.umd.min.8.js.gz +0 -0
- package/lib/ryui.umd.min.9.js +0 -1
package/lib/ryui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -160,14 +160,14 @@
|
|
|
160
160
|
this.setMaxZoom(18);
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
loadMap(el
|
|
163
|
+
loadMap(el) {
|
|
164
164
|
// const dto =
|
|
165
165
|
this.lMap.init({
|
|
166
166
|
el,
|
|
167
167
|
type: this.mapType,
|
|
168
168
|
layerType: this.layerType,
|
|
169
169
|
viewOptions: this.getViewOptions(),
|
|
170
|
-
callback: map => {
|
|
170
|
+
callback: (map,layers) => {
|
|
171
171
|
this.map = map;
|
|
172
172
|
|
|
173
173
|
if (this.bbox.length > 0) {
|
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
this.$emit('load', {
|
|
186
186
|
map,
|
|
187
187
|
mapServices: this.lMap,
|
|
188
|
+
layers,
|
|
188
189
|
ryMapTool: this.$refs.mapTool
|
|
189
190
|
});
|
|
190
191
|
|
|
@@ -131,8 +131,8 @@ export default class LMapServices {
|
|
|
131
131
|
this.map = null;
|
|
132
132
|
}
|
|
133
133
|
const {map,layers} = await this.lmap.onLoad(el,type, layerType);
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
this.map=map;
|
|
135
|
+
this.layers=layers;
|
|
136
136
|
MapConfig.View = viewOptions;
|
|
137
137
|
this.map.setView(MapConfig.View);
|
|
138
138
|
if (callback) {
|
|
@@ -351,7 +351,6 @@ export default class LMapServices {
|
|
|
351
351
|
|
|
352
352
|
getPolygonGeoJson() {
|
|
353
353
|
if (!this._lPolygon) return null;
|
|
354
|
-
// console.log('getPolygonGeoJson',this._lPolygon.getGeoJsonNew())
|
|
355
354
|
return this._lPolygon.getGeoJson();
|
|
356
355
|
}
|
|
357
356
|
|
package/src/views/map/index.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:switchMapDefaultTypeOrLayer="[1,2]" @mapMoveend="mapMoveend($event)"
|
|
10
10
|
@loadDrawPolygonEvent="loadDrawPolygonEvent($event)" :initModifyPolygon="geoJson"
|
|
11
11
|
@changeSwitchMap="changeSwitchMap($event)" :isShowSwitchMap="true"
|
|
12
|
-
|
|
12
|
+
>
|
|
13
13
|
<!-- <template slot="maptool">
|
|
14
14
|
<button>ry</button>
|
|
15
15
|
</template> -->
|
|
@@ -37,8 +37,15 @@
|
|
|
37
37
|
:map="mapDto.map"
|
|
38
38
|
:modelArr="modelArr"
|
|
39
39
|
@onLoad="onLoad($event)"
|
|
40
|
-
:isShowPolygon="showPolygon"
|
|
41
|
-
|
|
40
|
+
:isShowPolygon="showPolygon"
|
|
41
|
+
:isCheckPointHide="isCheckPoint"
|
|
42
|
+
:inserts="inserts"
|
|
43
|
+
:gpsType="gpsType"></ry-polygons>
|
|
44
|
+
<ry-clusters
|
|
45
|
+
:src="src" text="个"
|
|
46
|
+
fontColor="red" :fontSize="23"
|
|
47
|
+
:gpsType="gpsType" @callback="clusterCallback($event)" :map="mapDto.map" :modelArr="modelArr2" :offsetY="0"></ry-clusters>
|
|
48
|
+
|
|
42
49
|
</template>
|
|
43
50
|
|
|
44
51
|
</ry-map>
|
|
@@ -309,6 +316,7 @@
|
|
|
309
316
|
load(obj) {
|
|
310
317
|
this.lMap = obj.mapServices;
|
|
311
318
|
this.map = obj.map;
|
|
319
|
+
console.log(obj);
|
|
312
320
|
// let g10 = GPS.convertGCJ02(gJson2);
|
|
313
321
|
// convertWGS84
|
|
314
322
|
// convertWGS84,convertGCJ02
|