diff --git a/src/ol/reproj/Image.js b/src/ol/reproj/Image.js index e0ffc4265c..69f418fd0d 100644 --- a/src/ol/reproj/Image.js +++ b/src/ol/reproj/Image.js @@ -9,7 +9,7 @@ import _ol_events_ from '../events.js'; import EventType from '../events/EventType.js'; import {getCenter, getIntersection, getHeight, getWidth} from '../extent.js'; import _ol_reproj_ from '../reproj.js'; -import _ol_reproj_Triangulation_ from '../reproj/Triangulation.js'; +import Triangulation from '../reproj/Triangulation.js'; /** * @classdesc @@ -55,7 +55,7 @@ var ReprojImage = function(sourceProj, targetProj, * @private * @type {!ol.reproj.Triangulation} */ - this.triangulation_ = new _ol_reproj_Triangulation_( + this.triangulation_ = new Triangulation( sourceProj, targetProj, limitedTargetExtent, this.maxSourceExtent_, sourceResolution * errorThresholdInPixels); diff --git a/src/ol/reproj/Tile.js b/src/ol/reproj/Tile.js index ef0b9d5beb..7567c0388b 100644 --- a/src/ol/reproj/Tile.js +++ b/src/ol/reproj/Tile.js @@ -10,7 +10,7 @@ import EventType from '../events/EventType.js'; import {getArea, getCenter, getIntersection} from '../extent.js'; import {clamp} from '../math.js'; import _ol_reproj_ from '../reproj.js'; -import _ol_reproj_Triangulation_ from '../reproj/Triangulation.js'; +import Triangulation from '../reproj/Triangulation.js'; /** * @classdesc @@ -142,7 +142,7 @@ var ReprojTile = function(sourceProj, sourceTileGrid, * @private * @type {!ol.reproj.Triangulation} */ - this.triangulation_ = new _ol_reproj_Triangulation_( + this.triangulation_ = new Triangulation( sourceProj, targetProj, limitedTargetExtent, maxSourceExtent, sourceResolution * errorThresholdInPixels); diff --git a/src/ol/reproj/Triangulation.js b/src/ol/reproj/Triangulation.js index 6d552e9f2a..1635d872e0 100644 --- a/src/ol/reproj/Triangulation.js +++ b/src/ol/reproj/Triangulation.js @@ -41,7 +41,7 @@ var MAX_TRIANGLE_WIDTH = 0.25; * @param {number} errorThreshold Acceptable error (in source units). * @constructor */ -var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent, +var Triangulation = function(sourceProj, targetProj, targetExtent, maxSourceExtent, errorThreshold) { /** @@ -189,7 +189,7 @@ var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent, * @param {ol.Coordinate} cSrc The source c coordinate. * @private */ -_ol_reproj_Triangulation_.prototype.addTriangle_ = function(a, b, c, +Triangulation.prototype.addTriangle_ = function(a, b, c, aSrc, bSrc, cSrc) { this.triangles_.push({ source: [aSrc, bSrc, cSrc], @@ -214,7 +214,7 @@ _ol_reproj_Triangulation_.prototype.addTriangle_ = function(a, b, c, * @param {number} maxSubdivision Maximal allowed subdivision of the quad. * @private */ -_ol_reproj_Triangulation_.prototype.addQuad_ = function(a, b, c, d, +Triangulation.prototype.addQuad_ = function(a, b, c, d, aSrc, bSrc, cSrc, dSrc, maxSubdivision) { var sourceQuadExtent = boundingExtent([aSrc, bSrc, cSrc, dSrc]); @@ -326,7 +326,7 @@ _ol_reproj_Triangulation_.prototype.addQuad_ = function(a, b, c, d, * * @return {ol.Extent} Calculated extent. */ -_ol_reproj_Triangulation_.prototype.calculateSourceExtent = function() { +Triangulation.prototype.calculateSourceExtent = function() { var extent = createEmpty(); this.triangles_.forEach(function(triangle, i, arr) { @@ -343,7 +343,7 @@ _ol_reproj_Triangulation_.prototype.calculateSourceExtent = function() { /** * @return {Array.