OpenLayers Blog

All the maps that are fit to blog

New in OpenLayers 2.5

September 1st, 2007 by crschmidt · 5 Comments

After almost two weeks of work on OpenLayers, 2.5 featureset is finally starting to come together: Although we have 22 tickets open, only 3 lack patches, and only 12 are not ready and waiting for code review. Thanks to Tim Schaub and Erik Uzureau for their tireless efforts on this front.

I think Tim might have wanted to write something on some of these things, but I’m feeling chatty at the moment, so you get to hear from me first :)

Some of the new features for OpenLayers 2.5:

  • Better Vector Format Support, including GeoJSON in its current incarnation and better cross-browser XML parsing support.
  • Better Feature Editing — with support for ‘virtual vertices’ a la Google My Maps for extending out a shape and keyboard support for removing vertices from it.
  • Spherical Mercator support, to better support overlaying other data on top of commercial data sources. This means that vectors and TileCache over Google Maps baselayers will work.
  • Regular Polygon drawing and creation: allowing users to specify a center, radius, and number of sides to create a polygon around an origin.

(Note that the above URLs are likely to change/go away as they move into trunk.)

Already in trunk for this release:

  • Combination of gridded/untiled layers to limit code duplication
  • NaturalDocs powered documentation: already up and running on the apidocs, this complete rewrite of OpenLayers documentation is a huge step forward.
  • Debug support: In numerous places in the code, when a function can’t fail gracefully, it will now report to the user via the Firebug or Firebug Lite console when switched on.
  • Rotating Vector Features
  • Over 100 other bugfixes and minor changes to the OpenLayers code.

All in all, this release is going to bring together many of the small things that had been left over from the 2.4 release, and I’m looking forward to moving forward with many of the exciting new features.

Tags: Features

5 responses so far ↓

  • 1 Technical Ramblings » Blog Archive » New in OpenLayers 2.5 // Sep 1, 2007 at 1:15 am

    [...] the past week, I’ve been working on OpenLayers 2.5, which has been rewarding, though exhausting. I’m looking forward to getting our first RC out [...]

  • 2 Pete // Sep 1, 2007 at 1:57 pm

    “Spherical Mercator support, to better support overlaying other data on top of commercial data sources. This means that vectors and TileCache over Google Maps baselayers will work.”

    You shouldn’t be using spherical mercator for the vectors in neither Google Maps or Virtuel Earth, but a standard WGS84 datum. The sperical mercator only applies to raster images.

  • 3 neogeo » Archive du blog » OpenLayers 2.5 approche // Sep 17, 2007 at 1:32 pm

    [...] le blog d’OpenLayers qui le dit, la nouvelle version disponible depuis ce jour en Release Candidate 1 propose de nombreuses [...]

  • 4 azzy // Sep 18, 2007 at 7:52 am

    better CSS support would be great… Just append CSS-classes to all GUI Elements, move the style definitions from script to the cssfile and we’re all happy ;-)

  • 5 crschmidt // Sep 18, 2007 at 7:59 am

    azzy:

    Patches graciously accepted.

Leave a Comment