DragBox control provides visual shiftdragzoom feedback

Adding a new DragBox control and using it in the shiftdragzoom interaction to provide visual feedback of the zoom box. The control is nicely separated from the interaction - it only draws the box and does not perform any action.
This commit is contained in:
ahocevar
2012-09-26 12:50:14 +02:00
parent 24edce24f1
commit 3bd204fb6a
7 changed files with 149 additions and 9 deletions

View File

@@ -108,3 +108,4 @@ ol.interaction.Interaction.prototype.zoom = function(
map.setResolution(resolution);
}
};