@@ -71,6 +71,39 @@ export interface VectorLayerOptions extends LayerOptions {
7171export interface VectorTileLayerOptions extends TileLayerOptions {
7272 dataSource ?: TileDataSource < any , any > ;
7373 decoder ?: VectorTileDecoder ;
74+ /**
75+ * Sets the relative layer blending speed.
76+ * Default is 1.0. Use zero or negative values to disable blending.
77+ */
78+ layerBlendingSpeed ?: number ;
79+ /**
80+ * Sets the relative label blending speed.
81+ * Default is 1.0. Use zero or negative values to disable blending.
82+ */
83+ labelBlendingSpeed ?: number ;
84+ /**
85+ * display order of the labels. Default is VECTOR_TILE_RENDER_ORDER_LAYER
86+ */
87+ clickRadius ?: number ;
88+
89+ /**
90+ * the vector tile cache capacity in bytes. Tile cache is the primary storage for vector data,
91+ * all tiles contained within the cache are stored as uncompressed vertex buffers and can immediately be
92+ * drawn to the screen. Setting the cache size too small may cause artifacts, such as disappearing tiles.
93+ * The more tiles are visible on the screen, the larger this cache should be.
94+ * The default is 10MB, which should be enough for most use cases with preloading enabled. If preloading is
95+ * disabled, the cache size should be reduced by the user to conserve memory.
96+ */
97+ tileCacheCapacity ?: number ;
98+ /**
99+ * display order of the labels. Default is VECTOR_TILE_RENDER_ORDER_LAYER
100+ */
101+ labelRenderOrder ?: VectorTileRenderOrder ;
102+ /**
103+ * Sets the current display order of the buildings.
104+ * Default is VECTOR_TILE_RENDER_ORDER_LAYER.
105+ */
106+ buildingRenderOrder ?: VectorTileRenderOrder ;
74107}
75108
76109export interface CartoOnlineVectorTileLayerOptions extends VectorTileLayerOptions {
@@ -90,6 +123,42 @@ export interface ClusteredVectorLayerLayerOptions extends VectorTileLayerOptions
90123}
91124
92125export abstract class BaseVectorTileLayer < T , U extends TileLayerOptions > extends TileLayer < T , U > {
126+ /**
127+ * Sets the relative layer blending speed.
128+ * Default is 1.0. Use zero or negative values to disable blending.
129+ */
130+ layerBlendingSpeed : number ;
131+ /**
132+ * Sets the relative label blending speed.
133+ * Default is 1.0. Use zero or negative values to disable blending.
134+ */
135+ labelBlendingSpeed : number ;
136+
137+ /**
138+ * Sets the click radius of vector tile features.
139+ * The click radius is applied as an extra buffer to the vector tile features to make clicking on small features less sensitive.
140+ * Units are screen density independent pixels (DP or DIP).
141+ *The default value is 4.
142+ */
143+ clickRadius : number ;
144+ /**
145+ * display order of the labels. Default is VECTOR_TILE_RENDER_ORDER_LAYER
146+ */
147+ labelRenderOrder : VectorTileRenderOrder ;
148+ /**
149+ * Sets the current display order of the buildings.
150+ * Default is VECTOR_TILE_RENDER_ORDER_LAYER.
151+ */
152+ buildingRenderOrder : VectorTileRenderOrder ;
153+ /**
154+ * the vector tile cache capacity in bytes. Tile cache is the primary storage for vector data,
155+ * all tiles contained within the cache are stored as uncompressed vertex buffers and can immediately be
156+ * drawn to the screen. Setting the cache size too small may cause artifacts, such as disappearing tiles.
157+ * The more tiles are visible on the screen, the larger this cache should be.
158+ * The default is 10MB, which should be enough for most use cases with preloading enabled. If preloading is
159+ * disabled, the cache size should be reduced by the user to conserve memory.
160+ */
161+ tileCacheCapacity : number ;
93162 setLabelRenderOrder ( order : VectorTileRenderOrder ) : void ;
94163 setBuildingRenderOrder ( order : VectorTileRenderOrder ) ;
95164 setVectorTileEventListener < T = DefaultLatLonKeys > ( listener : VectorTileEventListener < T > , projection ?: Projection ) : void ;
0 commit comments