Assert that pixel is non-null when positioning overlay
This commit is contained in:
1 parent
6455c920f6
commit
4beb48fa3d
1 file changed
+1
@@ -335,6 +335,7 @@ ol.Overlay.prototype.updatePixelPosition_ = function() {
|
||||
}
|
||||
|
||||
var pixel = map.getPixelFromCoordinate(position);
|
||||
goog.asserts.assert(!goog.isNull(pixel));
|
||||
var mapSize = map.getSize();
|
||||
goog.asserts.assert(goog.isDef(mapSize));
|
||||
var style = this.element_.style;
|
||||
|
||||
Reference in new issue
Block a user