Socket
Socket
Sign inDemoInstall

@dlr-eoc/services-map-state

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlr-eoc/services-map-state - npm Package Versions

1345

12.0.0-alpha.2

Diff

dlr-eoc-ukis
published 12.0.0-alpha.1 •

dlr-eoc-ukis
published 12.0.0-alpha.0 •

dlr-eoc-ukis
published 11.1.0 •

Changelog

Source

11.1.0 (2023-05-30) (map-ol and layer-control)

Features

  • @dlr-eoc/layer-control:
    • Add input to disable and enable sorting for layers or layers of groups. E.g. <ukis-layer-control ... [layersSort]="true" [groupLayersSort]="false"> Issue #179.

Bug Fixes

  • @dlr-eoc/map-ol:
    • Restore ol map interactions and MapState after component toggle Issue #178.
dlr-eoc-ukis
published 11.0.0 •

Changelog

Source

11.0.0 (2023-05-05) (Openlayers Update and map-ol)

Breaking Changes

  • Update Openlayers to ^v7.1.0 and ol-mapbox-style to ^9.2.1. Issue #157.

  • @dlr-eoc/map-ol:

    • Styles from OpenLayers are no longer included in this component e3e98c1. You have to add them to your application manually see @dlr-eoc/map-ol/README.md.
    • The function vectorOnEvent now needs two parameters more layer: olLayer and feature: olFeature | olRenderFeature.
    • Refactor function layersOnMapEvent. Due to the removal of map.forEachLayerAtPixel in OpenLayers 7, the function works completely differently now. Iterate over all layers and test for feature or getData instead of just testing for color at a pixel. This also fixes Issue #120.

Features

  • @dlr-eoc/map-ol:

    • The function zoomInOut now accepts an optional object with callback, duration, easing and zoomStep.
    • Add types for FitOptions on setExtent.
    • Add function hideAllPopups which adds a css class to the popup element Issue #120.
    • The function layerOnEvent (for popups) now accepts an optional feature as the last parameter.
    • The function getLayerGroups is now public to retrieve the LayerGroups and Collections from the map.
    • Use hideAllPopups on layer.visible change and add css styles Issue #120.
    • Add groupID from CustomLayer or StackedLayer to the layers from there ol/layer/Group. So you can get the LayerGroup later e.g. in map.getAllLayers().
  • @dlr-eoc/utils-maps:

    • Add function getCollectionItem from ol/Collection. This returns the item and the index of the item if found otherwise null.
    • Add function layerOrGroupSetZIndex. Can set the zIndex for ol/layer/Group and all layers in the group.
    • Add function layerOrGroupSetOpacity. Can set the opacity for ol/layer/Group and all layers in the group.
    • Add function layerOrGroupSetVisible. Can set the visibility for ol/layer/Group and all layers in the group.
    • Add function collectionItemSetIndex. Moves an item in the ol/Collection to the index.

Bug Fixes

  • @dlr-eoc/map-ol:
    • Use applyBackground() from 'ol-mapbox-style' when creating vector tile layers.
    • Remove LayerGroups from map before add baselayerGroup, layersGroup and overlayGroup.
    • Set bbox for olLayerGroup layers in create_custom_layer.
    • Show popups on transparent features Issue #120.
    • Adjust to style changes of ol-control from OpenLayers 7.
dlr-eoc-ukis
published 11.0.0-alpha.1 •

dlr-eoc-ukis
published 11.0.0-alpha.0 •

dlr-eoc-ukis
published 10.1.0 •

Changelog

Source

10.1.0 (2022-11-07) (Features and Bug Fixes)

Features

  • @dlr-eoc/core-ui:

    • Update styles for layer-control - spacing and borders between layers and groups.
  • @dlr-eoc/layer-control:

    • Extend UI with some classes and style updates of layer-control.
    • Expand layers and groups on start based on the configuration in Layer.expanded and LayerGroup.expanded Issue #139](https://github.com/dlr-eoc/ukis-frontend-libraries/issues/139).
  • @dlr-eoc/services-layers:

    • Extend Types of Layer and LayerGroup to allow configuration of an expanded user interface to show or hide some details at startup Issue #139.

Bug Fixes

  • @dlr-eoc/services-map-state:

    • Reuse time from last state when `setExtent Issue #148.
  • @dlr-eoc/map-ol:

    • Use string for ol/OverlayPositioning change on OpenLayers v6.15.0.
    • Reuse time from last state when `setExtent Issue #148.
    • Remove id map and crosshair from the map div. If the map is used multiple times the ids are no longer unique and for styling classes are already there.
    • Fix setExtent from MapStateService after map init. Due to responsive map size it takes some time till the map has reached its full size and view.fit can calculate the correct extent.
dlr-eoc-ukis
published 10.0.0 •

Changelog

Source

10.0.0 (2022-10-13) (Update to angular 14, Features and Bug Fixes)

Breaking Changes

  • Package dependencies are set to allow Minor releases (which normally shouldn't break anything but can sometimes be) to simplify updates and usage when creating new apps.
  • Remove class floating from clr-main-container, this is now set on content-container e.g. in a route component @HostBinding('class') class = 'content-container floating';
  • Update angular from ^13.3.5 to ^14.0.2 automatic migrations are made by ng update and forms use types now.

Features

  • @dlr-eoc/layer-control:
    • Allow legend on LayerGroup like on the layer - if one legend fits for all layers.
    • Allow Dynamic components for Group description to display specific formatted descriptions.
    • Allow Dynamic components for Layer description to display specific formatted descriptions (keep in mind that this breaks @dlr-eoc/services-ogc generateResourceFromLayer for this layer!!! - If you pass inputs.description to IDynamicComponent it will try to take this).

Bug Fixes

  • @dlr-eoc/core-ui:

    • Replace deprecated ComponentFactory in DynamicComponent.
    • Fix style: remove right border on tabsbody for layers inside a group.
  • @dlr-eoc/layer-control:

    • Do not use <label for> with <input id> to prevent binding to the same element for duplicate IDs.
    • Do not change the group object binding in layerentry-group when creating a dynamic component from the group.
    • Do not change the layer object binding in layerentry when creating a dynamic component from the layer.
    • For Baselayers also show button to switch to the settings tab if layer has action Issue #135.
    • Show layer expand icon for 'Baselayers' only when the layer has some things to expand (legendImg, description, action, actions or styles as array to show a style switch).
  • @dlr-eoc/services-map-state:

    • Add missing time value in function setMapState on state initialization Issue #133.
  • @dlr-eoc/map-ol:

    • Update TmsLayer for vector tile style update.
    • Update Params and Source for baselayers.
    • Replace deprecated ComponentFactory in createDynamicPopupComponent angular 45263.
    • Set urls for vector tile layers after apply style to override them when tilejson is not provided. This is helpful to use tms services where no tilejson is available. Then set the url of the sourceId in your style file to "url": "" and add "tiles": []. This skips the request to tilejson.
dlr-eoc-ukis
published 10.0.0-next.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc