@evergis/api 3.0.166 → 3.0.168
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/dist/Api.d.ts +2 -0
- package/dist/__generated__/LayersService.d.ts +13 -2
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/SpatialReferencesService.d.ts +42 -0
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +66 -7
- package/dist/api.cjs.development.js +92 -2
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +92 -2
- package/dist/api.esm.js.map +1 -1
- package/dist/layers/EvergisDynamicLayer.d.ts +3 -1
- package/package.json +2 -2
package/dist/api.esm.js
CHANGED
|
@@ -7,6 +7,7 @@ import { customAlphabet } from 'nanoid';
|
|
|
7
7
|
import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
|
|
8
8
|
import { Map } from '@evergis/sgis/es/Map';
|
|
9
9
|
import { TileLayer } from '@evergis/sgis/es/layers/TileLayer';
|
|
10
|
+
import { webMercator } from '@evergis/sgis/es/Crs';
|
|
10
11
|
import { DynamicLayer } from '@evergis/sgis/es/layers/DynamicLayer';
|
|
11
12
|
import { FeatureLayer } from '@evergis/sgis';
|
|
12
13
|
|
|
@@ -304,6 +305,76 @@ let Service = /*#__PURE__*/_createClass(function Service(http) {
|
|
|
304
305
|
this.http = http;
|
|
305
306
|
});
|
|
306
307
|
|
|
308
|
+
/**
|
|
309
|
+
* @title Spatial Processing Core API
|
|
310
|
+
* @version 1.0.0
|
|
311
|
+
* @baseUrl /sp
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
let SpatialReferencesService = /*#__PURE__*/function (_Service) {
|
|
315
|
+
_inherits(SpatialReferencesService, _Service);
|
|
316
|
+
|
|
317
|
+
var _super = /*#__PURE__*/_createSuper(SpatialReferencesService);
|
|
318
|
+
|
|
319
|
+
function SpatialReferencesService() {
|
|
320
|
+
_classCallCheck(this, SpatialReferencesService);
|
|
321
|
+
|
|
322
|
+
return _super.apply(this, arguments);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_createClass(SpatialReferencesService, [{
|
|
326
|
+
key: "getAvailiableCs",
|
|
327
|
+
value:
|
|
328
|
+
/**
|
|
329
|
+
* No description
|
|
330
|
+
*
|
|
331
|
+
* @tags SpatialReferences
|
|
332
|
+
* @name GetAvailiableCs
|
|
333
|
+
* @operationId SpatialReferencesController_GetAvailiableCsAsync
|
|
334
|
+
* @summary Returns list of available spatial references.
|
|
335
|
+
* @request GET:/srs/list
|
|
336
|
+
* @response `200` Success
|
|
337
|
+
*/
|
|
338
|
+
function getAvailiableCs() {
|
|
339
|
+
return this.http.get("/srs/list").json();
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* No description
|
|
343
|
+
*
|
|
344
|
+
* @tags SpatialReferences
|
|
345
|
+
* @name GetProj4Representation
|
|
346
|
+
* @operationId SpatialReferencesController_GetProj4RepresentationAsync
|
|
347
|
+
* @summary Returns a WKT representation of spatial reference.
|
|
348
|
+
* @request GET:/srs/{name}/proj4
|
|
349
|
+
* @response `200` Success
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
}, {
|
|
353
|
+
key: "getProj4Representation",
|
|
354
|
+
value: function getProj4Representation(name) {
|
|
355
|
+
return this.http.get("/srs/" + name + "/proj4").text();
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* No description
|
|
359
|
+
*
|
|
360
|
+
* @tags SpatialReferences
|
|
361
|
+
* @name GetWktRepresentation
|
|
362
|
+
* @operationId SpatialReferencesController_GetWktRepresentationAsync
|
|
363
|
+
* @summary Returns a WKT representation of spatial reference.
|
|
364
|
+
* @request GET:/srs/{name}/wkt
|
|
365
|
+
* @response `200` Success
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
}, {
|
|
369
|
+
key: "getWktRepresentation",
|
|
370
|
+
value: function getWktRepresentation(name) {
|
|
371
|
+
return this.http.get("/srs/" + name + "/wkt").text();
|
|
372
|
+
}
|
|
373
|
+
}]);
|
|
374
|
+
|
|
375
|
+
return SpatialReferencesService;
|
|
376
|
+
}(Service);
|
|
377
|
+
|
|
307
378
|
const _excluded = ["taskId", "layerName"];
|
|
308
379
|
/**
|
|
309
380
|
* @title Spatial Processing Core API
|
|
@@ -2394,6 +2465,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2394
2465
|
*
|
|
2395
2466
|
* @tags Layers
|
|
2396
2467
|
* @name GetFeatures
|
|
2468
|
+
* @operationId LayersController_GetFeaturesQuery
|
|
2469
|
+
* @summary Returns list of the layer features.
|
|
2470
|
+
* @request POST:/layers/{name}/features/query
|
|
2471
|
+
* @response `200` Success
|
|
2472
|
+
*/
|
|
2473
|
+
|
|
2474
|
+
}, {
|
|
2475
|
+
key: "getFeaturesQuery",
|
|
2476
|
+
value: function getFeaturesQuery(name, data) {
|
|
2477
|
+
return this.http.post("/layers/" + name + "/features/query", data).json();
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* No description
|
|
2481
|
+
*
|
|
2482
|
+
* @tags Layers
|
|
2483
|
+
* @name GetFeatures1
|
|
2397
2484
|
* @operationId LayersController_GetFeatures
|
|
2398
2485
|
* @summary Returns list of the layer features.
|
|
2399
2486
|
* @request GET:/layers/{name}/features
|
|
@@ -6679,6 +6766,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6679
6766
|
_this.feedback = new Feedback(_this.http);
|
|
6680
6767
|
_this.vectorTiles = new VectorTiles(_this.http);
|
|
6681
6768
|
_this.universalSearch = new UniversalSearchService(_this.http);
|
|
6769
|
+
_this.spatialReference = new SpatialReferencesService(_this.http);
|
|
6682
6770
|
_this.names = new Names({
|
|
6683
6771
|
account: _this.account
|
|
6684
6772
|
});
|
|
@@ -6855,7 +6943,7 @@ let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
|
|
|
6855
6943
|
return EvergisTileLayer;
|
|
6856
6944
|
}(TileLayer);
|
|
6857
6945
|
|
|
6858
|
-
const _excluded$8 = ["name", "style", "condition", "dataFilterId"];
|
|
6946
|
+
const _excluded$8 = ["name", "style", "condition", "dataFilterId", "crs"];
|
|
6859
6947
|
let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
6860
6948
|
_inherits(EvergisDynamicLayer, _DynamicLayer);
|
|
6861
6949
|
|
|
@@ -6868,7 +6956,8 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6868
6956
|
name,
|
|
6869
6957
|
style,
|
|
6870
6958
|
condition,
|
|
6871
|
-
dataFilterId
|
|
6959
|
+
dataFilterId,
|
|
6960
|
+
crs = webMercator
|
|
6872
6961
|
} = _ref,
|
|
6873
6962
|
layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
6874
6963
|
|
|
@@ -6880,6 +6969,7 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6880
6969
|
_this.styleId = style;
|
|
6881
6970
|
_this.conditionQuery = condition;
|
|
6882
6971
|
_this.filterId = dataFilterId;
|
|
6972
|
+
_this.crs = crs;
|
|
6883
6973
|
|
|
6884
6974
|
_this.subscribeRedraw();
|
|
6885
6975
|
|