jmapcloud-ng-core-types 1.0.24 → 1.0.25

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
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 process the mouseover for it,
5616
- * and render it inside the div of your choice.
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**
@@ -2,7 +2,9 @@
2
2
  declare const enum JLAYER_LAYER_TYPES {
3
3
  VECTOR = "VECTOR",
4
4
  RASTER = "RASTER",
5
- OGC_API_FEATURES = "OGC_API_FEATURES"
5
+ OGC_API_FEATURES = "OGC_API_FEATURES",
6
+ WMS = "WMS",
7
+ WMTS = "WMTS"
6
8
  }
7
9
 
8
10
  // ALL_LAYER_LAYER_REQUEST_MODES in all-enum.ts
@@ -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