jmapcloud-ng-types 1.0.0 → 1.0.1001

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
@@ -163,7 +163,7 @@ export interface JAppFeatureService {
163
163
  openEditMenuById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
164
164
  openEditMenuByIds(layerId: JId, featureIds: JId[]): Promise<GeoJSON.Feature[]>
165
165
  closeEditMenu(): void
166
- deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
166
+ deleteByIds(layerId: JId, featureIds: JId[]): Promise<JId[]>
167
167
  }
168
168
 
169
169
  export interface JAppProjectService {
@@ -339,7 +339,7 @@ export interface JAppPrintService {
339
339
  setFileType(fileType: JAPP_PRINT_FILE_TYPES): void
340
340
  getFileType(): JAPP_PRINT_FILE_TYPES
341
341
  setHiResolution(isHiResolution: boolean): void
342
- getHiResolution():boolean
342
+ getHiResolution(): boolean
343
343
  takeCapture(): void
344
344
  }
345
345
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1001",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
5
5
  "main": "src/app.ts",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "homepage": "https://github.com/k2geospatial/jmapcloud-ng-types#readme",
24
24
  "devDependencies": {
25
25
  "@types/react": "18.2.21",
26
- "jmapcloud-ng-core-types": "0.4.5",
26
+ "jmapcloud-ng-core-types": "1.0.1",
27
27
  "maplibre-gl": "^3.2.1",
28
28
  "react": "^18.2.0",
29
29
  "typedoc": "^0.24.8"
package/public/app.d.ts CHANGED
@@ -556,7 +556,7 @@ declare namespace JMap {
556
556
  * JMap.Application.Feature.deleteByIds(4, [23, 76]).then(result => console.log("Delete result", result))
557
557
  * ```
558
558
  */
559
- function deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
559
+ function deleteByIds(layerId: JId, featureIds: JId[]): Promise<JId[]>
560
560
  }
561
561
 
562
562
  /**
@@ -939,9 +939,9 @@ declare namespace JMap {
939
939
 
940
940
  /**
941
941
  * **JMap.Application.Measure.getMeasurementSystem**
942
- *
942
+ *
943
943
  * Returns the current measurement system used by the Measurements Panel
944
- *
944
+ *
945
945
  * @example ```ts
946
946
  *
947
947
  * // get the current measurement system
@@ -949,29 +949,29 @@ declare namespace JMap {
949
949
  * // "geodetic"
950
950
  * ```
951
951
  */
952
- function getMeasurementSystem(): JAPP_MEASUREMENT_SYSTEMS
952
+ function getMeasurementSystem(): JAPP_MEASUREMENT_SYSTEMS
953
953
 
954
954
  /**
955
955
  * **JMap.Application.Measure.setMeasurementSystem**
956
- *
956
+ *
957
957
  * Sets the measurement system used by the Measurements Panel. **This setting is only taken into account when you draw measurements using the Measurements Panel. It does not affect jmapcloud-ng-core methods like {@link JMap.Geometry.getDistance}, which always return geodetic values.**
958
- *
959
- * **This method should not be called in regular situations.**
960
- *
958
+ *
959
+ * **This method should not be called in regular situations.**
960
+ *
961
961
  * Default measurement system is "geodetic", meaning that all measurements are representative of the length or area of features on the surface of the Earth. This is what is normally desired.
962
- *
963
- * In some rare situations, someone may want to get the length or area of measurements in the map's projection plane (EPSG:3857 - WGS 84 / Pseudo-Mercator). In this case, they can set the measurement system to "planar".
964
- *
962
+ *
963
+ * In some rare situations, someone may want to get the length or area of measurements in the map's projection plane (EPSG:3857 - WGS 84 / Pseudo-Mercator). In this case, they can set the measurement system to "planar".
964
+ *
965
965
  * Be warned that lengths or areas in planar context are not representative of the real dimensions on the earth's surface. The only supported planar projection for measurements is EPSG:3857.
966
- *
967
- * @param measurementSystem "geodetic" (default) or "planar"
966
+ *
967
+ * @param measurementSystem "geodetic" (default) or "planar"
968
968
  * @example ```ts
969
969
  *
970
970
  * // set the current measurement system to "geodetic"
971
971
  * JMap.Application.Measure.setMeasurementSystem("geodetic")
972
972
  * ```
973
973
  */
974
- function setMeasurementSystem(measurementSystem: JAPP_MEASUREMENT_SYSTEMS): void
974
+ function setMeasurementSystem(measurementSystem: JAPP_MEASUREMENT_SYSTEMS): void
975
975
  }
976
976
 
977
977
  /**
@@ -2297,7 +2297,7 @@ declare namespace JMap {
2297
2297
  * ```
2298
2298
  */
2299
2299
  function setHiResolution(isHiResolution: boolean): void
2300
-
2300
+
2301
2301
  /**
2302
2302
  * **JMap.Application.Print.getHiResolution**
2303
2303
  *
@@ -2310,8 +2310,8 @@ declare namespace JMap {
2310
2310
  * // true
2311
2311
  * ```
2312
2312
  */
2313
- function getHiResolution():boolean
2314
-
2313
+ function getHiResolution(): boolean
2314
+
2315
2315
  /**
2316
2316
  * **JMap.Application.Print.takeCapture**
2317
2317
  *