jmapcloud-ng-core-types 0.0.4 → 0.0.5

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
@@ -1,5 +1,5 @@
1
1
  import { Feature, FeatureCollection, LineString, MultiLineString, Point, Polygon } from "geojson"
2
- import { Map } from "mapbox-gl"
2
+ import { Map } from "maplibre-gl"
3
3
  import { Store } from "redux"
4
4
 
5
5
  export interface JCoreService extends JCoreMainService {
@@ -36,7 +36,8 @@ export interface JUIService {
36
36
  }
37
37
 
38
38
  export interface JLibraryService {
39
- mapboxgl(): any
39
+ maplibregl(): any
40
+ // mapboxgl(): any // TODO: remove
40
41
  html2canvas(): any
41
42
  }
42
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@types/geojson": "^7946.0.7",
37
- "@types/mapbox-gl": "^1.12.0",
37
+ "maplibre-gl": "^1.15.3",
38
38
  "@types/react": "^16.8.3",
39
39
  "geojson": "^0.5.0",
40
40
  "redux": "^4.0.0"
package/public/core.d.ts CHANGED
@@ -2799,7 +2799,7 @@ declare namespace JMap {
2799
2799
  * JMap.Map.getMap()
2800
2800
  * ```
2801
2801
  */
2802
- function getMap(): mapboxgl.Map
2802
+ function getMap(): maplibregl.Map
2803
2803
 
2804
2804
  /**
2805
2805
  * **JMap.Map.getMapJSLib**
@@ -4144,7 +4144,7 @@ declare namespace JMap {
4144
4144
  *
4145
4145
  * An interactor is a JS object that define 4 functions (for more details consult interface [[JMapInteractor]]) :
4146
4146
  * ```ts
4147
- * - init(map: mapboxgl.Map): void
4147
+ * - init(map: maplibregl.Map): void
4148
4148
  * - activate(): void
4149
4149
  * - deactivate(): void
4150
4150
  * - terminate(): void
@@ -12123,18 +12123,31 @@ declare namespace JMap {
12123
12123
  * Here you'll find all external library JMap expose to its client
12124
12124
  */
12125
12125
  namespace Library {
12126
+ // /**
12127
+ // * **JMap.Library.mapboxgl**
12128
+ // *
12129
+ // * Returns the mapboxgl library.
12130
+ // *
12131
+ // * @example ```ts
12132
+ // *
12133
+ // * // get the mapboxgl library
12134
+ // * const mapboxgl = JMap.Library.mapboxgl()
12135
+ // * ```
12136
+ // */
12137
+ // function mapboxgl(): any
12138
+
12126
12139
  /**
12127
- * **JMap.Library.mapboxgl**
12140
+ * **JMap.Library.maplibregl**
12128
12141
  *
12129
- * Returns the mapboxgl library.
12142
+ * Returns the maplibre-gl library.
12130
12143
  *
12131
12144
  * @example ```ts
12132
12145
  *
12133
- * // get the mapboxgl library
12134
- * const mapboxgl = JMap.Library.mapboxgl()
12146
+ * // get the maplibre-gl library
12147
+ * const maplibregl = JMap.Library.maplibregl()
12135
12148
  * ```
12136
12149
  */
12137
- function mapboxgl(): any
12150
+ function maplibregl(): any
12138
12151
 
12139
12152
  /**
12140
12153
  * **JMap.Library.html2canvas**
@@ -207,7 +207,7 @@ declare interface JCoreExtension {
207
207
  * ```
208
208
  *
209
209
  */
210
- injectMapRequestParameters?: mapboxgl.TransformRequestFunction
210
+ injectMapRequestParameters?: maplibregl.TransformRequestFunction
211
211
  }
212
212
 
213
213
  declare interface JExtensionMouseOver {
@@ -245,7 +245,7 @@ declare interface JLayerDynamicFilterConditionsRemoved extends JLayerEventParams
245
245
  }
246
246
 
247
247
  declare interface JMapEventLoadedParams {
248
- map: mapboxgl.Map
248
+ map: maplibregl.Map
249
249
  }
250
250
 
251
251
  declare interface JLayerGeometry {
@@ -84,7 +84,7 @@ declare interface JMapContextDataV0 {
84
84
  }>
85
85
  annotationsTextMarkersProperties: Array<{
86
86
  id: string
87
- location: mapboxgl.LngLatLike
87
+ location: maplibregl.LngLatLike
88
88
  textSize: number
89
89
  textColor: string
90
90
  textRotation: number
@@ -33,7 +33,7 @@ declare const enum JMAP_RASTER_SCHEME_TYPES {
33
33
  }
34
34
 
35
35
  declare interface JMapInteractor {
36
- init(map: mapboxgl.Map): void
36
+ init(map: maplibregl.Map): void
37
37
  activate(): void
38
38
  deactivate(): void
39
39
  terminate(): void
@@ -64,7 +64,7 @@ declare interface JDisplayExtentParams {
64
64
  }
65
65
 
66
66
  declare interface JMapEventParams {
67
- map: mapboxgl.Map
67
+ map: maplibregl.Map
68
68
  mapEvent: any
69
69
  }
70
70
 
@@ -188,8 +188,8 @@ declare interface JMapBoxEventData {
188
188
  }
189
189
 
190
190
  declare interface JMapMapboxLayerStyleDefinition {
191
- styleLayer: mapboxgl.Layer
192
- borderStyleLayer?: mapboxgl.Layer
191
+ styleLayer: maplibregl.Layer
192
+ borderStyleLayer?: maplibregl.Layer
193
193
  }
194
194
 
195
195
  declare interface JMapNavigateToParams extends JPanAndZoomOptions {
@@ -618,5 +618,5 @@ declare interface JCoreMapOptions {
618
618
  * </html>
619
619
  * ```
620
620
  */
621
- onStartupMapReadyFn?: (map: mapboxgl.Map) => void
621
+ onStartupMapReadyFn?: (map: maplibregl.Map) => void
622
622
  }
@@ -30,8 +30,8 @@ declare interface JMouseOverOpenPopupForSelectionParams {
30
30
 
31
31
  declare interface JMouseOverSelectionParams {
32
32
  selection: JMapSelection
33
- popup: mapboxgl.Popup
34
- map: mapboxgl.Map | undefined
33
+ popup: maplibregl.Popup
34
+ map: maplibregl.Map | undefined
35
35
  location: JLocation
36
36
  }
37
37