1515 import Attributions from '../core/Attributions' ;
1616
1717/**
18- * @class TileVectorLayer
18+ * @class TiledVectorLayer
1919 * @deprecatedclassinstance L.supermap.tiledVectorLayer
2020 * @classdesc SuperMap iServer 的矢量瓦片图层。
2121 * @category Visualization VectorTile
2222 * @extends VectorGrid
2323 * @example
24- * new TileVectorLayer (url).addTo(map);
24+ * new TiledVectorLayer (url).addTo(map);
2525 * @param {string } url - 服务地址。
2626 * @param {Object } options - 参数。
2727 * @param {string } options.layerNames - 指定图层的名称列表,支持的类型为矢量图层。
3939 * @param {string } [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>`] - 版权信息。
4040 * @usage
4141 */
42- export var TileVectorLayer = VectorGrid . extend ( {
42+ export var TiledVectorLayer = VectorGrid . extend ( {
4343 options : {
4444 crs : null ,
4545 //客户端cartocss样式
@@ -97,7 +97,7 @@ export var TileVectorLayer = VectorGrid.extend({
9797
9898 /**
9999 * @private
100- * @function TileVectorLayer .prototype.onAdd
100+ * @function TiledVectorLayer .prototype.onAdd
101101 * @description 添加地图。
102102 * @param {L.Map } map - Leaflet Map 对象。
103103 */
@@ -112,7 +112,7 @@ export var TileVectorLayer = VectorGrid.extend({
112112
113113 /**
114114 * @private
115- * @function TileVectorLayer .prototype.initLayersInfo
115+ * @function TiledVectorLayer .prototype.initLayersInfo
116116 * @description 获取服务器图层资源下的风格信息(当 CartoCSS 中不存在相应图层渲染信息时使用)。
117117 */
118118 initLayersInfo : function ( ) {
@@ -147,7 +147,7 @@ export var TileVectorLayer = VectorGrid.extend({
147147 } ,
148148
149149 /**
150- * @function TileVectorLayer .prototype.getLayerStyleInfo
150+ * @function TiledVectorLayer .prototype.getLayerStyleInfo
151151 * @description 获取图层样式信息。
152152 * @param {string } layerName - 图层名称。
153153 */
@@ -197,7 +197,7 @@ export var TileVectorLayer = VectorGrid.extend({
197197 } ,
198198
199199 /*
200- * @function TileVectorLayer .prototype.getVectorStylesFromServer
200+ * @function TiledVectorLayer .prototype.getVectorStylesFromServer
201201 * @description 等待服务器的 carto 返回之后拼接本地配置的 cartoCSS, 并调用 onAdd 出图。
202202 */
203203 getVectorStylesFromServer : function ( ) {
@@ -225,14 +225,14 @@ export var TileVectorLayer = VectorGrid.extend({
225225
226226 /**
227227 * @private
228- * @function TileVectorLayer .prototype.setServerCartoCSS
228+ * @function TiledVectorLayer .prototype.setServerCartoCSS
229229 * @description 设置服务端获取到的 cartoCSS 样式, cartoCSS 请求回来之后自动调用。
230230 */
231231 setServerCartoCSS : function ( cartoCSSStr ) {
232232 this . cartoCSSToLeaflet . pretreatedCartoCSS ( cartoCSSStr , true ) ;
233233 } ,
234234 /**
235- * @function TileVectorLayer .prototype.setClientCartoCSS
235+ * @function TiledVectorLayer .prototype.setClientCartoCSS
236236 * @description 客户端设置 cartoCSS 样式。
237237 */
238238 setClientCartoCSS : function ( cartoCSSStr ) {
@@ -245,7 +245,7 @@ export var TileVectorLayer = VectorGrid.extend({
245245
246246 /**
247247 * @private
248- * @function TileVectorLayer .prototype.getVectorTileLayerStyle
248+ * @function TiledVectorLayer .prototype.getVectorTileLayerStyle
249249 * @description 获取图层风格信息,当 CartoCSS 中包含有对该图层的渲染信息时,优先获取,否则获取图层资源下图层样式的渲染信息。
250250 * @param {Object } coords - 图层坐标参数对象。
251251 * @param {Object } feature - 需要获取的要素。
@@ -306,7 +306,7 @@ export var TileVectorLayer = VectorGrid.extend({
306306 } ,
307307
308308 /**
309- * @function TileVectorLayer .prototype.getScale
309+ * @function TiledVectorLayer .prototype.getScale
310310 * @description 通过缩放级别获取比例尺。
311311 * @param {number } zoom - 缩放级别。
312312 * @returns {number } 比例尺。
@@ -319,7 +319,7 @@ export var TileVectorLayer = VectorGrid.extend({
319319 } ,
320320
321321 /**
322- * @function TileVectorLayer .prototype.getScaleFromCoords
322+ * @function TiledVectorLayer .prototype.getScaleFromCoords
323323 * @description 通过行列号获取比例尺。
324324 * @param {Object } coords - 行列号。
325325 * @returns {number } 比例尺。
@@ -338,7 +338,7 @@ export var TileVectorLayer = VectorGrid.extend({
338338
339339 /**
340340 * @private
341- * @function TileVectorLayer .prototype.getDefaultScale
341+ * @function TiledVectorLayer .prototype.getDefaultScale
342342 * @description 根据行列号获取默认比例尺。
343343 * @param {Object } coords - 行列号。
344344 * @returns {number } 默认比例尺。
@@ -502,5 +502,5 @@ export var TileVectorLayer = VectorGrid.extend({
502502} ) ;
503503
504504export var tiledVectorLayer = function ( url , options ) {
505- return new TileVectorLayer ( url , options ) ;
505+ return new TiledVectorLayer ( url , options ) ;
506506} ;
0 commit comments