geokernel-electron 1.1.38 → 1.1.40

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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geokernel-electron",
3
- "version": "1.1.38",
3
+ "version": "1.1.40",
4
4
  "description": "Electron bindings for the GeoKernel GIS SDK.",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
package/src/viewer.js CHANGED
@@ -356,6 +356,10 @@ class ViewerWindow {
356
356
  );
357
357
  }
358
358
 
359
+ xyzLayerDiagnostics(index) {
360
+ return this._readJson("GeoKernelViewer_GetXyzLayerDiagnosticsJson", {}, Number(index));
361
+ }
362
+
359
363
  addWmsLayer(options) {
360
364
  return this._call(
361
365
  "GeoKernelViewer_AddWmsLayer",
@@ -952,6 +956,10 @@ class ViewerWindow {
952
956
  return this._call("GeoKernelViewer_RemoveLayerByName", name);
953
957
  }
954
958
 
959
+ saveLayerAsShapefile(index, outputPath) {
960
+ return this._call("GeoKernelViewer_SaveLayerAsShapefile", Number(index), outputPath);
961
+ }
962
+
955
963
  setLayerName(index, name) {
956
964
  return this._call("GeoKernelViewer_SetLayerName", Number(index), name);
957
965
  }