OpenLayers Blog

All the maps that are fit to blog

OpenLayers r3.0.0-alpha.4

July 29th, 2013 by ahocevar · 2 Comments

OpenLayers r3.0.0-alpha.4 is released.

For maps that have a defined extent that viewers should be able to return to, OpenLayers 3 now has a ZoomToExtent control.

As an internal preparation for SelectFeature control and vector editing, the canvas vector renderer can now deal with addition and removal of features. Another vector related improvement that results in a user facing API simplification is that the ol.source.Vector is now responsible for fetching vector data from the server. This means that users no longer need to parse features on the application level. Preparing for styling vector layers with CSS, the internal API now has getters and setters for symbolizer properties.

On the documentation and examples front, we have removed css loading from the example loader. This should avoid confusion, because previously when users looked at examples it was not obvious how the library css is loaded.

The rest of the issues closed for this alpha release are related to bug fixes, and internal refactoring.

Some of the work that is currently being done and that may be included in alpha.5:

We will soon start the transition from alpha to beta. The main task in this transition is to restrict the API to things that are stable already, so we can guarantee API stability throughout the 3.x series.

Stay tuned!

Tags: Uncategorized

2 responses so far ↓

  • 1 Dmitry // Jul 30, 2013 at 2:01 am

    Hi everyone.

    How you will organize events in new version?

    In OL2 there was some hard things to deal with. E.g. controls can’t share event handlers, so it was hard to implement click, double-click, and drag&drop for vector feature at the same time.

    Comments inside a code of OL2 says that in OL3 will be event manager for complicated event handlers combinations. Will you do it? Write about your’s plans about event handling in OL3? Or it’s an open for discussion question?

  • 2 ahocevar // Jul 30, 2013 at 2:23 am

    Events are there already (ol.MapBrowserEvent), but they are yet missing in the API docs. All the events you mentioned are fired by the map (see and do not require extra handlers.

    Internally, we use interactions (ol.interaction namespace) that listen to these map events. Interactions implement a handleMapBrowserEvent method. By returning true (continue) or false (stop) from this method, interactions can control whether other interactions will get the event. Because interactions are registered with the map (not with controls like the handlers in OpenLayers 2), application developers do not need to worry about competing handlers of controls.