Move simplify tolerance to the vector renderer
This commit is contained in:
@@ -62,13 +62,6 @@ export var ENABLE_WEBGL = true;
|
|||||||
export var DEBUG_WEBGL = true;
|
export var DEBUG_WEBGL = true;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* TODO: move this to renderer/vector.js
|
|
||||||
* @type {number} Tolerance for geometry simplification in device pixels.
|
|
||||||
*/
|
|
||||||
export var SIMPLIFY_TOLERANCE = 0.5;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {string} OpenLayers version.
|
* @type {string} OpenLayers version.
|
||||||
*/
|
*/
|
||||||
@@ -187,7 +180,6 @@ export default {
|
|||||||
ENABLE_RASTER_REPROJECTION: ENABLE_RASTER_REPROJECTION,
|
ENABLE_RASTER_REPROJECTION: ENABLE_RASTER_REPROJECTION,
|
||||||
ENABLE_WEBGL: ENABLE_WEBGL,
|
ENABLE_WEBGL: ENABLE_WEBGL,
|
||||||
DEBUG_WEBGL: DEBUG_WEBGL,
|
DEBUG_WEBGL: DEBUG_WEBGL,
|
||||||
SIMPLIFY_TOLERANCE: SIMPLIFY_TOLERANCE,
|
|
||||||
HAS_WEBGL: HAS_WEBGL,
|
HAS_WEBGL: HAS_WEBGL,
|
||||||
WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE,
|
WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE,
|
||||||
WEBGL_EXTENSIONS: WEBGL_EXTENSIONS
|
WEBGL_EXTENSIONS: WEBGL_EXTENSIONS
|
||||||
|
|||||||
@@ -1,13 +1,19 @@
|
|||||||
/**
|
/**
|
||||||
* @module ol/renderer/vector
|
* @module ol/renderer/vector
|
||||||
*/
|
*/
|
||||||
import {SIMPLIFY_TOLERANCE, getUid} from '../index.js';
|
import {getUid} from '../index.js';
|
||||||
import _ol_ImageState_ from '../ImageState.js';
|
import _ol_ImageState_ from '../ImageState.js';
|
||||||
import _ol_geom_GeometryType_ from '../geom/GeometryType.js';
|
import _ol_geom_GeometryType_ from '../geom/GeometryType.js';
|
||||||
import _ol_render_ReplayType_ from '../render/ReplayType.js';
|
import _ol_render_ReplayType_ from '../render/ReplayType.js';
|
||||||
var _ol_renderer_vector_ = {};
|
var _ol_renderer_vector_ = {};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {number} Tolerance for geometry simplification in device pixels.
|
||||||
|
*/
|
||||||
|
var SIMPLIFY_TOLERANCE = 0.5;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature|ol.render.Feature} feature1 Feature 1.
|
* @param {ol.Feature|ol.render.Feature} feature1 Feature 1.
|
||||||
* @param {ol.Feature|ol.render.Feature} feature2 Feature 2.
|
* @param {ol.Feature|ol.render.Feature} feature2 Feature 2.
|
||||||
|
|||||||
Reference in New Issue
Block a user