Reformat upgrade-notes.md
This commit is contained in:
@@ -139,11 +139,11 @@
|
|||||||
with the `imgSize` option and not with `size`. `size` is supposed to be used for the
|
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.
|
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.
|
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user