@dlr-eoc/services-layers
Advanced tools
Comparing version 11.1.0 to 12.0.0-alpha.1
@@ -34,2 +34,12 @@ import { Type } from '@angular/core'; | ||
} | ||
export interface IPopupParams { | ||
layerId: string; | ||
layerName: string; | ||
mapEvent: any; | ||
layer: any; | ||
feature?: any; | ||
color?: Uint8ClampedArray | Uint8Array | Float32Array | DataView | string; | ||
/** properties of the feature/layer or asyncData */ | ||
properties?: IAnyObject; | ||
} | ||
export interface popup { | ||
@@ -40,10 +50,16 @@ /** limit layer or feature properties: only those properties of a layer/feature, that are listed in this array, are being passed through to a popup-render-function */ | ||
properties?: IAnyObject; | ||
/** function to create html string - popupobj: nativeLayer */ | ||
popupFunction?: (popupobj: IAnyObject) => string; | ||
/** async function where you can paste a html string to the callback - popupobj: nativeLayer */ | ||
asyncPopup?: (popupobj: any, cb: (html: any) => void) => void; | ||
/** | ||
* function to create the popup content. | ||
* Return an HTML string or an object from which an HTML string is generated. | ||
*/ | ||
popupFunction?: (popupParams: IPopupParams) => string | IAnyObject; | ||
/** | ||
* async function to create the popup content. | ||
* Pass an HTML string, or an object from which an HTML string is generated, to the callback.. | ||
*/ | ||
asyncPopup?: (popupParams: IPopupParams, cb: (content: string | IAnyObject) => void) => void; | ||
/** create popup using angular component */ | ||
dynamicPopup?: { | ||
component: Type<any>; | ||
getAttributes?: (args: any) => object; | ||
getAttributes?: (args: IPopupParams) => object; | ||
}; | ||
@@ -58,2 +74,4 @@ /** default event is click - use move for a popup on hover */ | ||
filterLayer?: boolean; | ||
/** Use this to not add a popup to the map and instead publish events to view data in an external UI. */ | ||
asObservable?: boolean; | ||
} | ||
@@ -60,0 +78,0 @@ /** |
{ | ||
"name": "@dlr-eoc/services-layers", | ||
"version": "11.1.0", | ||
"version": "12.0.0-alpha.1", | ||
"main": "src/public-api", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
363432
3442
2