mars2d-esri 3.0.7 → 3.0.8

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Mars2D平台插件,ArcGIS Server功能支持插件
3
- * 版本信息:v3.0.7, hash值: ebfc372a042f27bfcffe
4
- * 编译日期:2022-02-20 16:52:46
3
+ * 版本信息:v3.0.8, hash值: e5cd8540731e08954ae9
4
+ * 编译日期:2022-02-25 14:00:34
5
5
  * 版权所有:Copyright by 火星科技 http://mars2d.cn
6
6
  *
7
7
  */
@@ -5620,7 +5620,7 @@ external_mars2d_["LayerUtil"].register("arcgis_image", ArcGisImageLayer_ArcGisIm
5620
5620
  /**
5621
5621
  * 绑定Popup弹窗配置
5622
5622
  * @param {Function} content Popup弹窗回调方法
5623
- * @param {Map.PopupOptions} [options] Popup弹窗参数
5623
+ * @param {Map.PopupOptions|Object} [options] Popup弹窗参数
5624
5624
  * @return {ArcGisImageLayer} 当前对象本身,可以链式调用
5625
5625
  * @example
5626
5626
  imageMapLayer.bindPopup(function(err, identifyResults, response){
@@ -6263,7 +6263,7 @@ external_mars2d_["LayerUtil"].register("arcgis_dynamic", ArcGisDynamicLayer_ArcG
6263
6263
  /**
6264
6264
  * 绑定Popup弹窗配置
6265
6265
  * @param {Function} content Popup弹窗回调方法
6266
- * @param {Map.PopupOptions} [options] Popup弹窗参数
6266
+ * @param {Map.PopupOptions|Object} [options] Popup弹窗参数
6267
6267
  * @return {ArcGisDynamicLayer} 当前对象本身,可以链式调用
6268
6268
  * @example
6269
6269
  dynamicMapLayer.bindPopup(function(err, featureCollection, response){
@@ -6489,7 +6489,7 @@ tileLayer.on('load', function (event) {
6489
6489
  * @param {Function} [options.onEachFeature] 提供了一个机会来内省图层中的各个 GeoJSON 功能。
6490
6490
  *
6491
6491
  * @param {Object|Function} [options.symbol] 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
6492
- * @param {GraphicType} [options.symbol.type] 标识数据类型,默认是根据数据生成 point、polyline、polygon
6492
+ * @param {GraphicType|String} [options.symbol.type] 标识数据类型,默认是根据数据生成 point、polyline、polygon
6493
6493
  * @param {Object} options.symbol.styleOptions Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。
6494
6494
  * @param {String} [options.symbol.styleField] 按 styleField 属性设置不同样式。
6495
6495
  * @param {Object} [options.symbol.styleFieldOptions] 按styleField值与对应style样式的键值对象。
@@ -6620,8 +6620,9 @@ var ArcGisFeatureLayer_ArcGisFeatureLayer = /*#__PURE__*/function (_LEsri$Featur
6620
6620
  // _calbackClickFeature("arcgis_feature", evt);
6621
6621
  // }
6622
6622
  var attr = evt.feature.properties;
6623
+ var title = _this.options.popupNameField ? attr[_this.options.popupNameField] : _this.options.name;
6623
6624
  return external_mars2d_["Util"].getTemplateHtml({
6624
- title: _this.options.name,
6625
+ title: title,
6625
6626
  template: popupConifg,
6626
6627
  attr: attr
6627
6628
  });
@@ -6633,8 +6634,9 @@ var ArcGisFeatureLayer_ArcGisFeatureLayer = /*#__PURE__*/function (_LEsri$Featur
6633
6634
  if (tooltipConifg) {
6634
6635
  this.bindTooltip(function (evt) {
6635
6636
  var attr = evt.feature.properties;
6637
+ var title = _this.options.tooltipNameField ? attr[_this.options.tooltipNameField] : _this.options.name;
6636
6638
  return external_mars2d_["Util"].getTemplateHtml({
6637
- title: _this.options.name,
6639
+ title: title,
6638
6640
  template: tooltipConifg,
6639
6641
  attr: attr
6640
6642
  });
@@ -6647,7 +6649,7 @@ var ArcGisFeatureLayer_ArcGisFeatureLayer = /*#__PURE__*/function (_LEsri$Featur
6647
6649
  * 遍历所有矢量数据并将其作为参数传递给回调函数
6648
6650
  *
6649
6651
  * @param {Function} method 回调方法
6650
- * @param {Object} context 侦听器的上下文(this关键字将指向的对象)。
6652
+ * @param {Object} [context] 侦听器的上下文(this关键字将指向的对象)。
6651
6653
  * @return {GraphicLayer} 当前对象本身,可以链式调用
6652
6654
  * @example
6653
6655
  *