jmapcloud-ng-core-types 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +1 -1
- package/public/core.d.ts +4 -3
- package/public/jmap/layer.d.ts +3 -1
- package/public/jmap/mouseover.d.ts +2 -0
package/index.ts
CHANGED
|
@@ -973,7 +973,7 @@ export interface JMouseOverService {
|
|
|
973
973
|
openPopup(params: JMouseOverOpenPopupParams): void
|
|
974
974
|
openPopupForSelection(params: JMouseOverOpenPopupForSelectionParams): void
|
|
975
975
|
renderForFeaturesAtLocation(containerId: string, location: JLocation): boolean // return true if has mouseover
|
|
976
|
-
renderForFeaturesSelection(containerId: string, selection: JMapSelection): boolean // return true if has mouseover
|
|
976
|
+
renderForFeaturesSelection(containerId: string, selection: JMapSelection, location?: JLocation): boolean // return true if has mouseover
|
|
977
977
|
openInformationReportInNewTab(layerId: JId): Promise<string>
|
|
978
978
|
}
|
|
979
979
|
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -5612,12 +5612,13 @@ declare namespace JMap {
|
|
|
5612
5612
|
/**
|
|
5613
5613
|
* **JMap.MouseOver.renderForFeaturesSelection**
|
|
5614
5614
|
*
|
|
5615
|
-
* From the feature selection you provide, it
|
|
5616
|
-
* and
|
|
5615
|
+
* From the feature selection you provide, it processes the mouseover for it,
|
|
5616
|
+
* and renders it inside the div of your choice.
|
|
5617
5617
|
*
|
|
5618
5618
|
* @throws Error if div doesn't exist in the DOM, or selection format is not good
|
|
5619
5619
|
* @param containerId The div id where to display the mouseover content
|
|
5620
5620
|
* @param selection A feature selection, the mouseover will be processed only for this features
|
|
5621
|
+
* @param location An optional location is necessary to display the result of a getFeatureInfo, in the case of activated popups on a WMS or WMTS layer.
|
|
5621
5622
|
* @return true if we displayed content in the div, false if no mouseover found for any layer
|
|
5622
5623
|
* @example
|
|
5623
5624
|
* ```ts
|
|
@@ -5634,7 +5635,7 @@ declare namespace JMap {
|
|
|
5634
5635
|
* })
|
|
5635
5636
|
* ```
|
|
5636
5637
|
*/
|
|
5637
|
-
function renderForFeaturesSelection(containerId: string, selection: JMapSelection): boolean
|
|
5638
|
+
function renderForFeaturesSelection(containerId: string, selection: JMapSelection, location?: JLocation): boolean
|
|
5638
5639
|
|
|
5639
5640
|
/**
|
|
5640
5641
|
* **JMap.MouseOver.openInformationReportInNewTab**
|
package/public/jmap/layer.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare interface JMapMouseOver {
|
|
|
5
5
|
backgroundColor: string
|
|
6
6
|
maximumZoom: number
|
|
7
7
|
minimumZoom: number
|
|
8
|
+
url: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
declare interface JMouseOverContent {
|
|
@@ -12,6 +13,7 @@ declare interface JMouseOverContent {
|
|
|
12
13
|
pendingLineLengthFeatureIdsByLayerId: { [key in JId]: JId[] }
|
|
13
14
|
pendingPolygonAreaFeatureIdsByLayerId: { [key in JId]: JId[] }
|
|
14
15
|
pendingCentroidFeatureIdsByLayerId: { [key in JId]: JId[] }
|
|
16
|
+
pendingFeatureInfoLayerIds: JId[]
|
|
15
17
|
toEvalJS: string[]
|
|
16
18
|
}
|
|
17
19
|
|