jmapcloud-ng-core-types 1.0.5 → 1.0.7
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 +2 -0
- package/package.json +1 -1
- package/public/core.d.ts +28 -4
package/index.ts
CHANGED
|
@@ -148,6 +148,7 @@ export interface JPhotoService {
|
|
|
148
148
|
export interface JFeatureService {
|
|
149
149
|
getById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
|
|
150
150
|
getByIds(layerId: JId, featureIds: JId[]): Promise<GeoJSON.Feature[]>
|
|
151
|
+
getByLayerId(layerId: JId, bbox: JBoundaryBox): Promise<GeoJSON.Feature[]>
|
|
151
152
|
geometryUpdateById(params: JFeatureGeometryUpdateParams): Promise<GeoJSON.Feature>
|
|
152
153
|
deleteById(layerId: JId, featureId: JId): Promise<JId>
|
|
153
154
|
// deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
|
|
@@ -512,6 +513,7 @@ export interface JMapState {
|
|
|
512
513
|
modificationType: JMAP_MODIFICATION_TYPES
|
|
513
514
|
attributions: JMapAttribution[]
|
|
514
515
|
rasterOpacityByLayerId: { [id: JId]: number }
|
|
516
|
+
projection: JProjection
|
|
515
517
|
}
|
|
516
518
|
|
|
517
519
|
export interface JProjectState {
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -129,7 +129,6 @@ declare namespace JMap {
|
|
|
129
129
|
*/
|
|
130
130
|
function getVersion(): JServerVersion
|
|
131
131
|
|
|
132
|
-
|
|
133
132
|
/**
|
|
134
133
|
* **JMap.Server.isMinimumVersionRespected**
|
|
135
134
|
*
|
|
@@ -456,6 +455,33 @@ declare namespace JMap {
|
|
|
456
455
|
*/
|
|
457
456
|
function getById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
|
|
458
457
|
|
|
458
|
+
/**
|
|
459
|
+
* **JMap.Feature.getByLayerId**
|
|
460
|
+
*
|
|
461
|
+
* Returns the feature (EPSG:4326 projection) for the given layer and bbox.
|
|
462
|
+
*
|
|
463
|
+
* @param layerId the JMap layer id
|
|
464
|
+
* @param bbox the bounding box
|
|
465
|
+
* @throws if layer not found or bbox is invalid
|
|
466
|
+
* @example ```ts
|
|
467
|
+
*
|
|
468
|
+
* // returns the feature of layer id="36885146-7eed-4071-9f86-8e29c505af91" and bbox
|
|
469
|
+
* JMap.Feature.getByLayer("36885146-7eed-4071-9f86-8e29c505af91", {
|
|
470
|
+
* ne: {
|
|
471
|
+
* x: -73.69935286533261,
|
|
472
|
+
* y: 45.51487645603402
|
|
473
|
+
* },
|
|
474
|
+
* sw: {
|
|
475
|
+
* x: -73.78637009135603,
|
|
476
|
+
* y: 45.47581946298703
|
|
477
|
+
* }
|
|
478
|
+
* })
|
|
479
|
+
* .then(features => console.info("Features has been fetched", features))
|
|
480
|
+
* .catch(error => console.error("An error occured", error))
|
|
481
|
+
* ```
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
function getByLayerId(layerId: JId, bbox: JBoundaryBox): Promise<GeoJSON.Feature[]>
|
|
459
485
|
/**
|
|
460
486
|
* **JMap.Feature.getByIds**
|
|
461
487
|
*
|
|
@@ -6474,9 +6500,7 @@ declare namespace JMap {
|
|
|
6474
6500
|
* /*
|
|
6475
6501
|
* ```
|
|
6476
6502
|
*/
|
|
6477
|
-
function getPasswordPolicyCompliance(
|
|
6478
|
-
password: string
|
|
6479
|
-
): JJMapPasswordPolicyCompliance
|
|
6503
|
+
function getPasswordPolicyCompliance(password: string): JJMapPasswordPolicyCompliance
|
|
6480
6504
|
|
|
6481
6505
|
/**
|
|
6482
6506
|
* ***JMap.User.isPseudoUser***
|