Skip to content

Latest commit

 

History

History
234 lines (224 loc) · 33 KB

v3.1.0.md

File metadata and controls

234 lines (224 loc) · 33 KB

3.1.0

Summary

The 3.1.0 release includes a whopping 214 merged pull requests since 3.0.0. Of note, the WebGL renderer now supports point rendering. You can use UTFGrids for interaction! Styles can now specify alternate geometries for rendering. Library builds can now be loaded with module loaders like Browserify or RequireJS. You can now symbolize point features with stars, squares, enneadecagons, or any other regular(ish) polygon. See the full list of changes below.

Upgrade notes

The 3.1.0 release maintains a backwards-compatible API with the 3.0.0 release, so upgrades should be painless. Some special considerations below.

  • If you are using a ol.source.ImageStatic, you no longer need to provide an imageSize option if you don't want any special scaling on your image (see #2796).

  • Instead of calling obj.unByKey(key) you can now call ol.Observable.unByKey(key) (see #2794).

  • If you were using format.writeFeatures(features), note that this method returns a string for all feature formats. We considered the previous behavior a bug (see #3003).

  • The obj.dispatchChangeEvent() method is now spelled obj.changed(). This method is still unstable (see #2684).

Changes