OpenLayers Blog

All the maps that are fit to blog

OpenLayers r3.0.0-alpha.4

July 29th, 2013 by ahocevar · 7 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

7 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 https://github.com/openlayers/ol3/blob/master/src/ol/mapbrowserevent.js#L381) 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.

  • 3 Dmitry // Jul 30, 2013 at 2:41 am

    ahocevar, seems much more easier then it was in OL2. Thanks for answer.

  • 4 chenming // Aug 19, 2013 at 9:32 am

    s

  • 5 Simon // Sep 2, 2013 at 9:58 am

    What is the best forum to ask about features? Th eGoogle time/position KML files and the associated track animation is a very powerful feature in a GIS application, allowing history to be replayed of graphically enriching a projected course. I’d love to see that in a final release. Also, I was wondering what number of markers OL3 could support.

  • 6 ahocevar // Sep 3, 2013 at 3:43 am

    The right place to ask is the mailing list (https://groups.google.com/forum/#!forum/ol3-dev). We have a demo that renders 20.000 markers in no time with Canvas (http://tschaub.net/say-hello-to-ol3/examples/synthetic-data.html). Timed data animations are beyond the scope of 3.0.0, but definitely something that can be added.

  • 7 cheap mlb jerseys in canada // Mar 10, 2014 at 12:00 am

    Cheap jerseys from china has the top-notch cheap everton jerseys in various styles and colors for you to choose!we offer a free backup service to customers.

Leave a Comment