Remove view.getView2D() method
This commit is contained in:
@@ -52,9 +52,9 @@ goog.inherits(ol.interaction.DragZoom, ol.interaction.DragBox);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.interaction.DragZoom.prototype.onBoxEnd = function() {
|
||||
// FIXME works for View2D only
|
||||
var map = this.getMap();
|
||||
var view = map.getView().getView2D();
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(goog.isDef(view));
|
||||
var extent = this.getGeometry().getExtent();
|
||||
var center = ol.extent.getCenter(extent);
|
||||
var size = map.getSize();
|
||||
|
||||
Reference in New Issue
Block a user