Make pixel projection handling work in compiled mode

The compiler seems to have trouble with functions that can run with
different 'this' types. By moving the units handling to the callback, this
issue can be avoided.
This commit is contained in:
Andreas Hocevar
2016-01-15 14:44:41 +01:00
parent 5b40190cbe
commit d6a8c9465e
2 changed files with 15 additions and 13 deletions
+1
View File
@@ -161,6 +161,7 @@ ol.VectorTile.prototype.load = function() {
/**
* @param {Array.<ol.Feature>} features Features.
* @api
*/
ol.VectorTile.prototype.setFeatures = function(features) {
this.features_ = features;