This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Releases: Bayer-Group/ol-kit
Releases · Bayer-Group/ol-kit
0.18.3
1.1.1
1.1.0
Enhancements
- New cli tool creates an
ol-kit
map project from scratch- just runnpx @bayer/ol-kit create-map
#220
1.0.2
0.18.2
1.0.1
1.0.0
🎉 1.0.0
RELEASE 🎉
-
connectToMap
has been removed in favor ofconnectToContext
#111 -
Upgrade openlayers
peerDependency
version to latest:[email protected]
#166
(note: this upgrade bumpsol-kit
's dependency ofol
2 major versions from4.6.5
to6.4.3
- please refer to the release notes for breaking changes when migrating an old project).
Below are some gotchas that got us:-
v5 Major changes
[email protected]
:- Casing for imports changed (ol docs):
- Old syntax:
import olFeature from 'ol/feature'
- New syntax:
import olFeature from 'ol/Feature'
- This will cause your babel compiler to throw warnings saying that you have different casing for the same files
- Old syntax:
forEachLayerAtPixel
's parameters has changed (ol docs):- Old syntax:
map.forEachLayerAtPixel(pixel, callback, callbackThis, layerFilterFn, layerFilterThis)
- New syntax:
map.forEachLayerAtPixel(pixel, callback, { layerFilter: layerFilterFn })
- Old syntax:
ol/proj
now destructures the methods off of the class (ol docs):- Old syntax:
import olProj from 'ol/proj'
olProj.fromLonLat()
- New syntax:
import { fromLonLat } from 'ol/proj
- Old syntax:
- Casing for imports changed (ol docs):
-
v6 Major changes
[email protected]
:getFeaturesAtPixel
now returns an empty array instead of null if no features were found (ol docs).
-
Enhancements
- New
connectToContext
consumer wrapper #179
0.18.0
Enhancements
- New draw components:
<Draw>
,<DrawContainer>
,<DrawBox>
,<DrawCircle>
,<DrawFreehand>
,<DrawLine>
,<DrawPoint>
,<DrawPolygon>
#167 - New filtering capabilities in
<LayerStyler>
(only supportsGeoserverLayer
types for now) #169
0.17.4
1.0.0-beta.0
❗ Install the latest beta release by using npm i @bayer/ol-kit@next
Enhancements
- Upgrade openlayers version to latest:
[email protected]
#166
(note: this upgrade bumpsol-kit
's dependency ofol
2 major versions from4.6.5
to6.4.3
- please refer to the release notes for breaking changes when migrating an old project:[email protected]
|[email protected]
)