O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Discovering the other interactions

We will first look at ol.interaction.DragRotateAndZoom, and then we will move on to the others.

These other interactions were sometimes used along the book chapters, but we did not always explain them completely; it was impossible with all the other concepts that required explanation at the time.

ol.interaction.DragRotateAndZoom

This interaction does both actions together: rotate and zoom. By default, you need to use the Shift key when you drag to use it. Let's review it with an example.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required