Rename view.getView2DState() to view.getState()

This commit is contained in:
Tim Schaub
2014-06-26 16:32:19 -04:00
parent b88d2aebc9
commit 2e88f911dd
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ ol.interaction.PinchZoom.prototype.handlePointerDrag =
var map = mapBrowserEvent.map;
var view = map.getView();
var view2DState = view.getView2DState();
var view2DState = view.getState();
// scale anchor point.
var viewportPosition = goog.style.getClientPosition(map.getViewport());
@@ -106,7 +106,7 @@ ol.interaction.PinchZoom.prototype.handlePointerUp =
var map = mapBrowserEvent.map;
var view = map.getView();
view.setHint(ol.ViewHint.INTERACTING, -1);
var view2DState = view.getView2DState();
var view2DState = view.getState();
// Zoom to final resolution, with an animation, and provide a
// direction not to zoom out/in if user was pinching in/out.
// Direction is > 0 if pinching out, and < 0 if pinching in.