Releases: open-pioneer/trails-openlayers-base-packages
@open-pioneer/overview-map@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
@open-pioneer/ogc-features@0.8.0
Minor Changes
-
b717121: Update from OL 9 to OL 10.
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
@open-pioneer/measurement@0.8.0
Minor Changes
-
b717121: Update from OL 9 to OL 10.
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
@open-pioneer/map@0.8.0
Minor Changes
-
b717121: Update from OL 9 to OL 10.
-
e7978a8: Breaking: Remove most events from the map model and the layer interfaces.
All events that were merely used to synchronized state (e.g.changed:title
etc.) have been removed.The map model and related objects (layers, layer collections, etc.) are now based on the Reactivity API.
This change greatly simplifies the code that is necessary to access up-to-date values and to react to changes.For example, from inside a React component, you can now write:
import { useReactiveSnapshot } from "@open-pioneer/reactivity"; function YourComponent() { // Always up to date, even if the layer's title changes. // No more need to listen to events. const title = useReactiveSnapshot(() => layer.title, [layer]); return <div>{title}</div>; }
And inside a normal JavaScript function, you can watch for changes like this:
import { watch } from "@conterra/reactivity-core"; const watchHandle = watch( () => [layer.title], ([newTitle]) => { console.log("The title changed to", newTitle); } ); // Later, cleanup: watchHandle.destroy();
For more details, check the Reactivity API documentation.
-
7ae9f90: Add new
children
property to all layers.
This property makes it possible to handle any layer children in a generic fashion, regardless of the layer's actual type.layer.children
is either an alias oflayer.sublayers
(if the layer has sublayers),layer.layers
(if it's aGroupLayer
) or undefined, if the layer does not have any children. -
d8337a6: The following hooks are deprecated and will be removed in a future release:
useView
useProjection
useResolution
useCenter
useScale
They can all be replaced by using the new reactive properties on the
MapModel
, for example:// old: const center = useCenter(olMap); // new: const center = useReactiveSnapshot(() => mapModel.center, [mapModel]);
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
-
7ae9f90: Add new layer type
GroupLayer
to to the Map API.A
GroupLayer
contains a list ofLayer
(e.g.SimpleLayer
orWMSLayer
). BecauseGroupLayer
is aLayer
as well nested groups are supported.
The child layers of aGroupLayer
can be accessed with thelayers
property -layers
isundefined
if it is not a group.
The parentGroupLayer
of a child layer can be accessed with theparent
property -parent
isundefined
if this layer is not part of a group (or not a sublayer).const olLayer1 = new TileLayer({ source: new OSM() }); const olLayer2 = new TileLayer({ source: new BkgTopPlusOpen() }); // Create group layer with nested sub group const group = new GroupLayer({ id: "group", title: "a group layer", layers: [ new SimpleLayer({ id: "member", title: "group member", olLayer: olLayer1 }), new GroupLayer({ id: "subgroup", title: "a nested group layer", layers: [ new SimpleLayer({ id: "submember", title: "subgroup member", olLayer: olLayer2 }) ] }) ] }); const childLayers: GroupLayerCollection = group.layers; // Access child layers
Layers can only be added to a single group or map.
Sublayers (e.g.WMSSublayer
) cannot be added to a group directly. -
d8337a6: Provide new reactive properties on the
MapModel
type.olView
(->olMap.getView()
)projection
(->olMap.getView().getProjection()
)resolution
(->olMap.getView().getResolution()
)zoomLevel
(->olMap.getView().getZoom()
)center
(->olMap.getView().getCenter()
)scale
(derived from center and resolution)
Most of the listed properties are already available on raw OpenLayers objects (see code in parentheses above).
However, those OpenLayers properties require manual work for synchronization, whereas the new properties are reactive (and can be watched, for example, usinguseReactiveSnapshot()
).A new method
setScale()
has also been added to the model.
Patch Changes
@open-pioneer/map-ui-components@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
@open-pioneer/map-test-utils@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- 224102d: Use reactive map model API to watch for changes of initialExtent.
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
@open-pioneer/map-navigation@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- d8337a6: Refactor implementation to use the new reactive properties of the map model.
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
- @open-pioneer/map-ui-components@0.8.0
@open-pioneer/legend@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- e7978a8: Use reactive map model APIs to access the current layers and their attributes.
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
@open-pioneer/geolocation@0.8.0
Minor Changes
-
b717121: Update from OL 9 to OL 10.
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0
- d8337a6: Refactor implementation to use the new reactive properties of the map model.
- Updated dependencies [b717121]
- Updated dependencies [e7978a8]
- Updated dependencies [7a5f1e1]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- Updated dependencies [49f0207]
- Updated dependencies [b2127df]
- Updated dependencies [2fa8020]
- Updated dependencies [7ae9f90]
- Updated dependencies [d8337a6]
- @open-pioneer/map@0.8.0
- @open-pioneer/map-ui-components@0.8.0
@open-pioneer/experimental-layout-sidebar@0.8.0
Minor Changes
-
2fa8020: Update trails core package dependencies.
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
- Removes any obsolete references to
@chakra-ui/system
.
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
Patch Changes
- 49f0207: Update trails core packages to version 2.4.0