Force a map render when the view is not updated
This commit is contained in:
@@ -114,6 +114,9 @@ ol.interaction.DragPan.handleUpEvent_ = function(mapBrowserEvent) {
|
||||
]);
|
||||
dest = view.constrainCenter(dest);
|
||||
view.setCenter(dest);
|
||||
} else {
|
||||
// the view is not updated, force a render
|
||||
map.render();
|
||||
}
|
||||
view.setHint(ol.View.Hint.INTERACTING, -1);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user