Don't use withFrozenRendering in ol.interaction.Interaction.rotateWithoutConstraints
This commit is contained in:
@@ -127,16 +127,12 @@ ol.interaction.Interaction.rotateWithoutConstraints =
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goog.asserts.assertInstanceof(view, ol.View2D);
|
||||||
if (goog.isDefAndNotNull(opt_anchor)) {
|
if (goog.isDefAndNotNull(opt_anchor)) {
|
||||||
var center = view.calculateCenterRotate(rotation, opt_anchor);
|
var center = view.calculateCenterRotate(rotation, opt_anchor);
|
||||||
map.withFrozenRendering(function() {
|
view.setCenter(center);
|
||||||
goog.asserts.assertInstanceof(view, ol.View2D);
|
|
||||||
view.setCenter(center);
|
|
||||||
view.setRotation(rotation);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
view.setRotation(rotation);
|
|
||||||
}
|
}
|
||||||
|
view.setRotation(rotation);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user