@@ -32760,10 +32760,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
32760
32760
32761
32761
/**
32762
32762
* @class L.supermap.graphic
32763
- * @classdesc 图形类 。
32763
+ * @classdesc 高效率点图层要素类 。
32764
32764
* @category Visualization Graphic
32765
32765
* @extends L.Class{@linkdoc-leaflet/#class}
32766
- * @param options - {Object} 图形参数
32766
+ * @param options -{object} 图形参数
32767
+ * @param options.latLng -{L.LatLng} 经纬度
32768
+ * @param options.style -{L.supermap.circleStyle|L.supermap.cloverStyle|L.supermap.imageStyle} 点样式
32769
+ * @param options.attributes -{Object} 要素属性
32767
32770
*/
32768
32771
var Graphic = exports.Graphic = _leaflet2["default"].Class.extend({
32769
32772
@@ -32779,7 +32782,7 @@ var Graphic = exports.Graphic = _leaflet2["default"].Class.extend({
32779
32782
/**
32780
32783
* @function L.supermap.graphic.prototype.setLatLng
32781
32784
* @description 设置经纬度
32782
- * @param latLng - {L.latLng } 经纬度参数
32785
+ * @param latLng -{L.LatLng } 经纬度参数
32783
32786
*/
32784
32787
setLatLng: function setLatLng(latLng) {
32785
32788
this._latLng = latLng;
@@ -32789,7 +32792,7 @@ var Graphic = exports.Graphic = _leaflet2["default"].Class.extend({
32789
32792
* @deprecated
32790
32793
* @function L.supermap.graphic.prototype.setCanvas
32791
32794
* @description 设置画布,已弃用该设置,请使用setStyle接口
32792
- * @param canvas - {Object } 传入需要设置的画布
32795
+ * @param canvas - {HTMLCanvasElement } 传入需要设置的画布
32793
32796
*/
32794
32797
setCanvas: function setCanvas(canvas) {
32795
32798
this._style = canvas;
@@ -32807,7 +32810,7 @@ var Graphic = exports.Graphic = _leaflet2["default"].Class.extend({
32807
32810
/**
32808
32811
* @function L.supermap.graphic.prototype.getLatLng
32809
32812
* @description 获取经纬度
32810
- * @return {L.latLng } 经纬度
32813
+ * @return {L.LatLng } 经纬度
32811
32814
*/
32812
32815
32813
32816
getLatLng: function getLatLng() {
@@ -32836,16 +32839,16 @@ var Graphic = exports.Graphic = _leaflet2["default"].Class.extend({
32836
32839
/**
32837
32840
* @function L.supermap.graphic.prototype.setStyle
32838
32841
* @description 设置样式
32839
- * @param canvas - {HTMLCanvasElement} 传入需要设置的画布
32842
+ * @param style - {L.supermap.circleStyle|L.supermap.imageStyle|L.supermap.cloverStyle} 样式
32840
32843
*/
32841
- setStyle: function setStyle(canvas ) {
32842
- this._style = canvas ;
32844
+ setStyle: function setStyle(style ) {
32845
+ this._style = style ;
32843
32846
},
32844
32847
32845
32848
/**
32846
32849
* @function L.supermap.graphic.prototype.getStyle
32847
32850
* @description 获取样式
32848
- * @return {L.supermap.CircleStyle |L.supermap.ImageStyle |L.supermap.CloverStyle } 样式
32851
+ * @return {L.supermap.circleStyle |L.supermap.imageStyle |L.supermap.cloverStyle } 样式
32849
32852
*/
32850
32853
getStyle: function getStyle() {
32851
32854
return this._style;
@@ -62430,7 +62433,7 @@ var CloverStyle = exports.CloverStyle = _leaflet2["default"].Class.extend({
62430
62433
},
62431
62434
62432
62435
/**
62433
- * @function: L.supermap.cloverStyle.prototype.drawSector
62436
+ * @function L.supermap.cloverStyle.prototype.drawSector
62434
62437
* @description 绘制扇形
62435
62438
* @param ctx - {CanvasRenderingContext2D} context对象
62436
62439
* @param x - {number} 中心点 x
@@ -65427,7 +65430,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
65427
65430
* @classdesc 高效率点图层类。
65428
65431
* @category Visualization Graphic
65429
65432
* @extends L.Path{@linkdoc-leaflet/#path}
65430
- * @param graphics - {Array<L.supermap.Graphic >} 图形对象
65433
+ * @param graphics - {Array<L.supermap.graphic >} 图形对象
65431
65434
* @param options - {Object} 图层参数。<br>
65432
65435
* handleClick - {function} 图层点击响应事件函数。
65433
65436
*/
@@ -65470,7 +65473,7 @@ var GraphicLayer = exports.GraphicLayer = _leaflet2["default"].Path.extend({
65470
65473
/**
65471
65474
* @function L.supermap.graphicLayer.prototype.setGraphics
65472
65475
* @description 设置绘制的点要素数据,会覆盖之前的所有要素
65473
- * @param {Array<L.supermap.Graphic >} graphics - 点要素对象数组
65476
+ * @param {Array<L.supermap.graphic >} graphics - 点要素对象数组
65474
65477
*/
65475
65478
setGraphics: function setGraphics(graphics) {
65476
65479
this.graphics = [];
@@ -65483,7 +65486,7 @@ var GraphicLayer = exports.GraphicLayer = _leaflet2["default"].Path.extend({
65483
65486
/**
65484
65487
* @function L.supermap.graphicLayer.prototype.addGraphics
65485
65488
* @description 追加点要素,不会覆盖之前的要素
65486
- * @param {Array<L.supermap.Graphic >} graphics - 点要素对象数组
65489
+ * @param {Array<L.supermap.graphic >} graphics - 点要素对象数组
65487
65490
*/
65488
65491
addGraphics: function addGraphics(graphics) {
65489
65492
this.graphics = this.graphics || [];
0 commit comments