Make changes suggested during the review

This commit is contained in:
Andreas Hocevar
2015-10-27 21:04:38 +01:00
parent 2b2ac47b1f
commit 5832943773
20 changed files with 237 additions and 156 deletions

View File

@@ -1180,6 +1180,10 @@ ol.render.canvas.PolygonReplay = function(tolerance, maxExtent, resolution) {
miterLimit: undefined
};
/**
* @private
* @type {boolean}
*/
this.rightHanded_ = false;
};

View File

@@ -86,7 +86,7 @@ ol.render.Feature.prototype.getEnds = function() {
* @api
*/
ol.render.Feature.prototype.getExtent = function() {
if (!goog.isDef(this.extent_)) {
if (!this.extent_) {
this.extent_ = this.type_ === ol.geom.GeometryType.POINT ?
ol.extent.createOrUpdateFromCoordinate(this.flatCoordinates_) :
ol.extent.createOrUpdateFromFlatCoordinates(