Merge pull request #8995 from fredj/vec_render_mode
Remove leftover comments and code for 'vector' render mode
This commit is contained in:
@@ -37,8 +37,6 @@ import {assign} from '../obj.js';
|
|||||||
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels are scaled during zoom
|
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels are scaled during zoom
|
||||||
* animations. Point symbols and texts are accurately rendered as vectors and can stay upright on
|
* animations. Point symbols and texts are accurately rendered as vectors and can stay upright on
|
||||||
* rotated views.
|
* rotated views.
|
||||||
* * `'vector'`: Vector tiles are rendered as vectors. Most accurate rendering even during
|
|
||||||
* animations, but slower performance than the other options.
|
|
||||||
*
|
*
|
||||||
* When `declutter` is set to `true`, `'hybrid'` will be used instead of `'image'`.
|
* When `declutter` is set to `true`, `'hybrid'` will be used instead of `'image'`.
|
||||||
* @property {import("../source/VectorTile.js").default} [source] Source.
|
* @property {import("../source/VectorTile.js").default} [source] Source.
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels
|
* * `'hybrid'`: Polygon and line elements are rendered as images, so pixels
|
||||||
* are scaled during zoom animations. Point symbols and texts are accurately
|
* are scaled during zoom animations. Point symbols and texts are accurately
|
||||||
* rendered as vectors and can stay upright on rotated views.
|
* rendered as vectors and can stay upright on rotated views.
|
||||||
* * `'vector'`: Vector tiles are rendered as vectors. Most accurate rendering
|
|
||||||
* even during animations, but slower performance than the other options.
|
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import Units from '../../proj/Units.js';
|
|||||||
import ReplayType from '../../render/ReplayType.js';
|
import ReplayType from '../../render/ReplayType.js';
|
||||||
import {labelCache} from '../../render/canvas.js';
|
import {labelCache} from '../../render/canvas.js';
|
||||||
import CanvasBuilderGroup from '../../render/canvas/BuilderGroup.js';
|
import CanvasBuilderGroup from '../../render/canvas/BuilderGroup.js';
|
||||||
import {ORDER} from '../../render/replay.js';
|
|
||||||
import CanvasTileLayerRenderer from './TileLayer.js';
|
import CanvasTileLayerRenderer from './TileLayer.js';
|
||||||
import {getSquaredTolerance as getSquaredRenderTolerance, renderFeature} from '../vector.js';
|
import {getSquaredTolerance as getSquaredRenderTolerance, renderFeature} from '../vector.js';
|
||||||
import {
|
import {
|
||||||
@@ -47,8 +46,7 @@ const IMAGE_REPLAYS = {
|
|||||||
*/
|
*/
|
||||||
const VECTOR_REPLAYS = {
|
const VECTOR_REPLAYS = {
|
||||||
'image': [ReplayType.DEFAULT],
|
'image': [ReplayType.DEFAULT],
|
||||||
'hybrid': [ReplayType.IMAGE, ReplayType.TEXT, ReplayType.DEFAULT],
|
'hybrid': [ReplayType.IMAGE, ReplayType.TEXT, ReplayType.DEFAULT]
|
||||||
'vector': ORDER
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user