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

Events

The standard KVO events beforepropertychange and change are available, as well as one event for each of the observable properties: change:layergroup, change:size, change:target, and change:view. Review the section on KVO in Chapter 2, Key Concepts in OpenLayers if you don't remember how these events work.

In addition to the KVO related events, however, there are quite a few new events that can be triggered from a map object. As with any other event, you can register for these events using the on() and once() methods discussed earlier. We'll group these events into browser events, map events, and render events.

Browser events

The Browser events are all events that are provided in response to the user interacting with the map's HTML element. ...

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