From 3d662f1c4cfcd65fd09ca05e2deab4c76cb4af18 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 20 Apr 2015 14:15:36 -0600 Subject: [PATCH] Add upgrade notes --- changelog/upgrade-notes.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index ebb5d7acef..530f30dabe 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -139,14 +139,18 @@ with the `imgSize` option and not with `size`. `size` is supposed to be used for the size of a sub-rectangle in an image sprite. -### Support for non-square tiles +#### Support for non-square tiles The return value of `ol.tilegrid.TileGrid#getTileSize()` will now be an `ol.Size` array instead of a number if non-square tiles (i.e. an `ol.Size` array instead of a number as `tilsSize`) are used. To always get an `ol.Size`, the new `ol.size.toSize()` was added. -### Change to `ol.interaction.Draw` +#### Change to `ol.interaction.Draw` When finishing a draw, the `drawend` event is now dispatched before the feature is inserted to either the source or the collection. This change allows application code to finish setting up the feature. +#### Misc. + +If you compile your application together with the library and use the `ol.feature.FeatureStyleFunction` type annotation (this should be extremely rare), the type is now named `ol.FeatureStyleFunction`. + ### v3.4.0 There should be nothing special required when upgrading from v3.3.0 to v3.4.0.