@vtx/map 1.1.25 → 1.1.26

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.
@@ -387,8 +387,8 @@ var Map = /*#__PURE__*/function (_React$Component) {
387
387
  });
388
388
  /*=================================start========================================*/
389
389
 
390
- /*
391
- draw对象声明, 绘制返回方法实现
390
+ /*
391
+ draw对象声明, 绘制返回方法实现
392
392
  */
393
393
 
394
394
  if (!t._drawmanager) {
@@ -409,9 +409,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
409
409
  }
410
410
  /*=================================start========================================*/
411
411
 
412
- /*
413
- 声明OverlayView 类
414
- 用于切换lnglat和 pixel
412
+ /*
413
+ 声明OverlayView 类
414
+ 用于切换lnglat和 pixel
415
415
  */
416
416
 
417
417
 
@@ -430,9 +430,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
430
430
  this.canvasProjectionOverlay.setMap(map);
431
431
  /*=================================start========================================*/
432
432
 
433
- /*
434
- 重写marker对象,支持html
435
- 要使用google对象,所以在creatMap中声明
433
+ /*
434
+ 重写marker对象,支持html
435
+ 要使用google对象,所以在creatMap中声明
436
436
  */
437
437
 
438
438
  var MyLabel = t.MyLabel = function (map) {
@@ -909,7 +909,7 @@ var Map = /*#__PURE__*/function (_React$Component) {
909
909
  var marker = null;
910
910
 
911
911
  if (item.markerContent) {
912
- /*自定义html加点
912
+ /*自定义html加点
913
913
  用Label来实现,无法再添加label(高德有判断,实现不同)*/
914
914
  //覆盖物参数
915
915
  marker = new t.MyLabel(t.state.gis, {
@@ -936,9 +936,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
936
936
  labelClass: labelClass,
937
937
  labelContent: cg.labelContent,
938
938
 
939
- /*
940
- 为和百度等地图相同的参数 加上g.markerContentY值
941
- label是使用OverlayView手动实现,与marker没有关联的原因
939
+ /*
940
+ 为和百度等地图相同的参数 加上g.markerContentY值
941
+ label是使用OverlayView手动实现,与marker没有关联的原因
942
942
  */
943
943
  labelOffset: {
944
944
  x: cg.labelPixelX,
@@ -1125,9 +1125,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
1125
1125
  var oldPosition = gc.getPosition(); //前后点位类型都是markerContent
1126
1126
 
1127
1127
  if (gc.isMarkerContent && gc.isMarkerContent() && item.markerContent) {
1128
- /*
1129
- 自定义html加点
1130
- 用Label来实现,无法再添加label(高德有判断,实现不同)
1128
+ /*
1129
+ 自定义html加点
1130
+ 用Label来实现,无法再添加label(高德有判断,实现不同)
1131
1131
  */
1132
1132
  //覆盖物参数
1133
1133
  gc.setOptions({
@@ -1195,9 +1195,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
1195
1195
  labelClass: labelClass,
1196
1196
  labelContent: cg.labelContent,
1197
1197
 
1198
- /*
1199
- 为和百度等地图相同的参数 加上g.markerContentY值
1200
- label是使用OverlayView手动实现,与marker没有关联的原因
1198
+ /*
1199
+ 为和百度等地图相同的参数 加上g.markerContentY值
1200
+ label是使用OverlayView手动实现,与marker没有关联的原因
1201
1201
  */
1202
1202
  labelOffset: {
1203
1203
  x: cg.labelPixelX,
@@ -1332,9 +1332,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
1332
1332
  labelClass: _labelClass,
1333
1333
  labelContent: cg.labelContent,
1334
1334
 
1335
- /*
1336
- 为和百度等地图相同的参数 加上g.markerContentY值
1337
- label是使用OverlayView手动实现,与marker没有关联的原因
1335
+ /*
1336
+ 为和百度等地图相同的参数 加上g.markerContentY值
1337
+ label是使用OverlayView手动实现,与marker没有关联的原因
1338
1338
  */
1339
1339
  labelOffset: {
1340
1340
  x: cg.labelPixelX,
@@ -2845,8 +2845,8 @@ var Map = /*#__PURE__*/function (_React$Component) {
2845
2845
 
2846
2846
  t._drawmanager.setDrawingMode(null);
2847
2847
  }
2848
- /*
2849
- 事件处理
2848
+ /*
2849
+ 事件处理
2850
2850
  */
2851
2851
  //点击图元事件
2852
2852
 
@@ -2945,8 +2945,8 @@ var Map = /*#__PURE__*/function (_React$Component) {
2945
2945
  t.props.mouseOutGraphic(obj);
2946
2946
  }
2947
2947
  }
2948
- /*
2949
- 地图服务功能
2948
+ /*
2949
+ 地图服务功能
2950
2950
  */
2951
2951
  //开启路况
2952
2952
 
@@ -3885,9 +3885,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
3885
3885
 
3886
3886
  return deg;
3887
3887
  }
3888
- /*
3889
- 匹配控件位置方法
3890
- (谷歌地图有8个方位,为了统一,只使用左上,左下,右上,右下)
3888
+ /*
3889
+ 匹配控件位置方法
3890
+ (谷歌地图有8个方位,为了统一,只使用左上,左下,右上,右下)
3891
3891
  */
3892
3892
 
3893
3893
  }, {
@@ -3915,8 +3915,8 @@ var Map = /*#__PURE__*/function (_React$Component) {
3915
3915
 
3916
3916
  return position;
3917
3917
  }
3918
- /*
3919
- 地图内部需要公共方法
3918
+ /*
3919
+ 地图内部需要公共方法
3920
3920
  */
3921
3921
 
3922
3922
  }, {
@@ -4148,10 +4148,10 @@ var Map = /*#__PURE__*/function (_React$Component) {
4148
4148
  if (typeof isclearAllPointCollection == 'boolean' && isclearAllPointCollection || isclearAllPointCollection && isclearAllPointCollection !== t.props.isclearAllPointCollection) {
4149
4149
  t.clearAllPointCollection();
4150
4150
  }
4151
- /*点数据处理
4152
- pointData[2]相同的点,执行刷新
4153
- pointData[1]的数据在idsForGraphicId中不存在的,执行新增
4154
- pointData[0]数据中多余的id,执行删除
4151
+ /*点数据处理
4152
+ pointData[2]相同的点,执行刷新
4153
+ pointData[1]的数据在idsForGraphicId中不存在的,执行新增
4154
+ pointData[0]数据中多余的id,执行删除
4155
4155
  */
4156
4156
 
4157
4157
 
@@ -4201,9 +4201,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
4201
4201
 
4202
4202
  t.updatePoint([].concat(_toConsumableArray(upds), _toConsumableArray(otherupds)));
4203
4203
  }
4204
- /*
4205
- 面数据处理
4206
- 先全删除,再新增
4204
+ /*
4205
+ 面数据处理
4206
+ 先全删除,再新增
4207
4207
  */
4208
4208
 
4209
4209
 
@@ -4253,9 +4253,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
4253
4253
 
4254
4254
  t.updatePolygon([].concat(_toConsumableArray(_upds), _toConsumableArray(_otherupds)));
4255
4255
  }
4256
- /*
4257
- 圆数据处理
4258
- 先全删除,再新增
4256
+ /*
4257
+ 圆数据处理
4258
+ 先全删除,再新增
4259
4259
  */
4260
4260
 
4261
4261
 
@@ -4305,9 +4305,9 @@ var Map = /*#__PURE__*/function (_React$Component) {
4305
4305
 
4306
4306
  t.updateCircle([].concat(_toConsumableArray(_upds2), _toConsumableArray(_otherupds2)));
4307
4307
  }
4308
- /*
4309
- 线数据处理
4310
- 先全删除,再新增
4308
+ /*
4309
+ 线数据处理
4310
+ 先全删除,再新增
4311
4311
  */
4312
4312
 
4313
4313