Move simplify tolerance to the vector renderer

This commit is contained in:
Tim Schaub
2017-12-12 16:36:59 -07:00
parent 60f6736360
commit b8ab1ff852
2 changed files with 7 additions and 9 deletions

View File

@@ -62,13 +62,6 @@ export var ENABLE_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.
*/
@@ -187,7 +180,6 @@ export default {
ENABLE_RASTER_REPROJECTION: ENABLE_RASTER_REPROJECTION,
ENABLE_WEBGL: ENABLE_WEBGL,
DEBUG_WEBGL: DEBUG_WEBGL,
SIMPLIFY_TOLERANCE: SIMPLIFY_TOLERANCE,
HAS_WEBGL: HAS_WEBGL,
WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE,
WEBGL_EXTENSIONS: WEBGL_EXTENSIONS

View File

@@ -1,13 +1,19 @@
/**
* @module ol/renderer/vector
*/
import {SIMPLIFY_TOLERANCE, getUid} from '../index.js';
import {getUid} from '../index.js';
import _ol_ImageState_ from '../ImageState.js';
import _ol_geom_GeometryType_ from '../geom/GeometryType.js';
import _ol_render_ReplayType_ from '../render/ReplayType.js';
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} feature2 Feature 2.