@dlr-eoc/services-map-state
Advanced tools
Comparing version 12.0.1-next.0 to 12.0.1-next.1
@@ -13,6 +13,16 @@ import { BehaviorSubject } from 'rxjs'; | ||
setExtent(extent: TGeoExtent, notifier?: IMapState['options']['notifier']): void; | ||
setTime(time: Date | string): void; | ||
getLastAction(): BehaviorSubject<"setExtent" | "setState">; | ||
setTime(time: Date | string, notifier?: IMapState['options']['notifier']): void; | ||
/** | ||
* @param angle | ||
* This is not available for OpenLayers (only rotation) | ||
* | ||
* For Maplibre the default is from 0 to 60. Can be increasd with setMaxPitch (0-85). Values greater than 60 degrees are experimental and may result in rendering issues. | ||
* | ||
* For Cesium values greater than 90, is like looking from the ground up to the sky. Values greater than 180 also rotate the globe. | ||
*/ | ||
setViewAngle(angle: number, notifier?: IMapState['options']['notifier']): void; | ||
setRotation(rotation: number, notifier?: IMapState['options']['notifier']): void; | ||
getLastAction(): BehaviorSubject<"setExtent" | "setState" | "setRotation" | "setAngle" | "setTime">; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<MapStateService, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<MapStateService>; | ||
} |
@@ -17,2 +17,6 @@ export interface IMapCenter { | ||
time?: string; | ||
/** from nadir in degrees */ | ||
viewAngle?: number; | ||
/** from north in degrees */ | ||
rotation?: number; | ||
} | ||
@@ -33,3 +37,7 @@ /** | ||
time: string; | ||
constructor(zoom: number, center: IMapCenter, options?: IMapStateOptions, extent?: TGeoExtent, time?: string); | ||
/** from nadir in degrees */ | ||
viewAngle: number; | ||
/** from north in degrees */ | ||
rotation: number; | ||
constructor(zoom: number, center: IMapCenter, options?: IMapStateOptions, extent?: TGeoExtent, time?: string, viewAngle?: number, rotation?: number); | ||
sameCenter(center: IMapState['center']): boolean; | ||
@@ -36,0 +44,0 @@ sameZoom(zoom: IMapState['zoom']): boolean; |
{ | ||
"name": "@dlr-eoc/services-map-state", | ||
"version": "12.0.1-next.0", | ||
"version": "12.0.1-next.1", | ||
"main": "src/public-api", | ||
@@ -23,3 +23,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@dlr-eoc/services-layers": "12.0.1-next.0", | ||
"@dlr-eoc/services-layers": "12.0.1-next.1", | ||
"tslib": "^2.4.0" | ||
@@ -26,0 +26,0 @@ }, |
# @dlr-eoc/services-map-state | ||
The `MapStateService` should be an interface to handle `zoom`, `center`, `extent` and `time` of maps. | ||
The `MapStateService` should be an interface to handle `zoom`, `center`, `extent`, `view angle`, `rotation` and `time` of maps. | ||
The idea is similar to `@dlr-eoc/services-layers`. | ||
@@ -29,2 +29,4 @@ ### how to use this in a ukis-angular (@dlr-eoc/core-ui) project | ||
- @dlr-eoc/map-ol | ||
- @dlr-eoc/map-cesium | ||
- @dlr-eoc/map-maplibre | ||
- @dlr-eoc/map-tools | ||
@@ -39,2 +41,4 @@ - @dlr-eoc/layer-control | ||
- extent | ||
- view angle (for 3D maps) | ||
- rotation | ||
- time | ||
@@ -41,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48409
418
68
+ Added@dlr-eoc/services-layers@12.0.1-next.1(transitive)
- Removed@dlr-eoc/services-layers@12.0.1-next.0(transitive)