Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@dlr-eoc/utils-maps

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlr-eoc/utils-maps - npm Package Versions

134

12.0.0

Diff

Changelog

Source

12.0.0 (2023-12-12) (map-ol, map-cesium and map-maplibre)

Breaking Changes

  • Update angular from ^14.2.11 to ^16.2.1 automatic migrations are made by ng update. See update angular from 14.0-15.0 and 14.0-15.0.
  • Update @clr/angular and @clr/ui from ^13.17.0 to ^15.12.0. See releases Breaking Changes. Fixes in styles have been made so update the styles folder from projects/core-ui/schematics/ng-add/files/src/styles and also add class="content-area map-view" for content areas that include a map.
  • Update rxjs from ^6.6.7 to ~7.8.0. Fixes of deprecations forkJoin(obs,obs) to forkJoin([obs,obs]) and retryWhen() to retry({count: number deley: ()=> }) and combineLatest() to combineLatestWith() and of<T>() to of().
  • @dlr-eoc/map-cesium:

    • Remove exported type Tgroupfiltertype. Use Tgroupfiltertype = TFiltertypesUncap | TFiltertypes and import them from @dlr-eoc/services-layers.
  • @dlr-eoc/map-ol:

    • Remove exported type Tgroupfiltertype. Use Tgroupfiltertype = TFiltertypesUncap | TFiltertypes and import them from @dlr-eoc/services-layers.
    • Remove color and event from properties passed to raster layer popup. Now IPopupParams is passed so you can use IPopupParams.color and IPopupParams.mapEvent. For the remaining properties, use IPopupParams.properties, which contains feature properties and async data.
    • The parameters of the MapOlService.addPopup function are changed as follows addPopup(popupParams: IPopupParams, popupObj?: popup, html?: string, event?: 'click' | 'move', removePopups?: boolean).
    • The interfaces IPopupArgs and IDynamicPopupArgs have been removed. Use IPopupParams now
    • The dynamic popup now gets IPopupParams instead of IDynamicPopupArgs - popup.dynamicPopup.getAttributes(params:IPopupParams)
    • Not used notifier is removed from MapOlService.setZoom(zoom: number)
  • @dlr-eoc/map-tools:

    • Input 'mapSvc' of ProjectionSwitchComponent become mandatory and not optional
    • Additional mandatory input in ProjectionSwitchComponent "mapStateSvc" and optional "fitViewToNewExtent"

Features

  • @dlr-eoc/utilities:

    • New UKIS library export utilities for other libraries.
  • @dlr-eoc/map-maplibre:

    • A example has been added to the demo-maps to show how to work with the new maplibre library.
    • New UKIS library for working with maplibre was added.
  • @dlr-eoc/map-cesium:

    • New UKIS library for working with CesiumJS was added.
    • A new example has been added to the demo-maps to show how to work with the new cesium library.
    • The GeoJsonDatasource in map-cesium was updated and styling of vector layers is now possible.
  • @dlr-eoc/services-layers:

    • The layer.popup gets more types and uses IPopupParams which will be applied to all popups.
    • Export new type TFiltertypesUncap to use with TFiltertypes. So Tgroupfiltertype = TFiltertypesUncap | TFiltertypes is usable in maps.
  • @dlr-eoc/map-ol:

    • Popup events can be observed by MapOlService.popupEvents: Subject<IPopupEvent>. For this add asObservable: true to a popup object, you will then be able to subscribe to the event instead of having a popup container being added to the map.
    • A new Interface IPopupEvent is exposed.
    • Add groupID to olLayers (layer.groupID) to check if a layer was in an olLayerGroup.
  • @dlr-eoc/map-tools:

    • Optional parameter "fitViewToNewExtent" in the ProjectionSwitchComponent to adjust map view extent
dlr-eoc-ukis
published 12.0.0-alpha.2 •

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.
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