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 +3 -2
- package/package.json +2 -2
- package/public/core.d.ts +20 -7
- package/public/jmap/extension.d.ts +1 -1
- package/public/jmap/layer.d.ts +1 -1
- package/public/jmap/map-context.d.ts +1 -1
- package/public/jmap/map.d.ts +5 -5
- package/public/jmap/mouseover.d.ts +2 -2
package/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feature, FeatureCollection, LineString, MultiLineString, Point, Polygon } from "geojson"
|
|
2
|
-
import { Map } from "
|
|
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
|
-
|
|
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.
|
|
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
|
-
"
|
|
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():
|
|
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:
|
|
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.
|
|
12140
|
+
* **JMap.Library.maplibregl**
|
|
12128
12141
|
*
|
|
12129
|
-
* Returns the
|
|
12142
|
+
* Returns the maplibre-gl library.
|
|
12130
12143
|
*
|
|
12131
12144
|
* @example ```ts
|
|
12132
12145
|
*
|
|
12133
|
-
* // get the
|
|
12134
|
-
* const
|
|
12146
|
+
* // get the maplibre-gl library
|
|
12147
|
+
* const maplibregl = JMap.Library.maplibregl()
|
|
12135
12148
|
* ```
|
|
12136
12149
|
*/
|
|
12137
|
-
function
|
|
12150
|
+
function maplibregl(): any
|
|
12138
12151
|
|
|
12139
12152
|
/**
|
|
12140
12153
|
* **JMap.Library.html2canvas**
|
package/public/jmap/layer.d.ts
CHANGED
package/public/jmap/map.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare const enum JMAP_RASTER_SCHEME_TYPES {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare interface JMapInteractor {
|
|
36
|
-
init(map:
|
|
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:
|
|
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:
|
|
192
|
-
borderStyleLayer?:
|
|
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:
|
|
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:
|
|
34
|
-
map:
|
|
33
|
+
popup: maplibregl.Popup
|
|
34
|
+
map: maplibregl.Map | undefined
|
|
35
35
|
location: JLocation
|
|
36
36
|
}
|
|
37
37
|
|