Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evergis/api

Package Overview
Dependencies
Maintainers
5
Versions
329
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evergis/api - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

6

es/__generated__/data-contracts/index.d.ts

@@ -215,3 +215,3 @@ /**

/** Column value type. */
type: 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint';
type: 'Unknown' | 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint';
/** Columns value max length. */

@@ -357,3 +357,3 @@ maxLength?: number;

/** Type of the value of the attribute. */
type?: 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint';
type?: 'Unknown' | 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint';
/** If false, the attribute must have non-null value. */

@@ -702,2 +702,4 @@ isNullable?: boolean;

/** */
layerDefinition?: LayerDefinitionDc;
/** */
style?: StyleDc;

@@ -704,0 +706,0 @@ /** */

@@ -26,4 +26,5 @@ import { Service } from './Service';

getById({ name, id }: GetByIdParams): Promise<FeatureDc>;
getLayerImage({ name, extent, size, extentSr, condition, }: GetLayerImageParams): string;
getLayerImage({ name, extent, size, extentSr, condition, styleId, }: GetLayerImageParams): string;
getLayerExtent({ name, filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>;
classify({ name, attribute, classes, precision }: ClassifyParams): Promise<number[]>;
getByGeometry({ name, geometry, extentSr }: GetByGeometryParams): Promise<FeaturesListDc>;

@@ -118,2 +119,4 @@ getByGeometryPost({ name, geometry, extentSr }: GetByGeometryPostParams): Promise<FeaturesListDc>;

condition?: string;
/** */
styleId?: string;
};

@@ -128,2 +131,12 @@ export declare type GetLayerExtentParams = {

};
export declare type ClassifyParams = {
/** */
name: string;
/** */
attribute?: string;
/** */
classes?: number;
/** */
precision?: number;
};
export declare type GetByGeometryParams = {

@@ -130,0 +143,0 @@ /** */

@@ -118,3 +118,3 @@ /*

}
getLayerImage({ name, extent, size, extentSr, condition, }) {
getLayerImage({ name, extent, size, extentSr, condition, styleId, }) {
return this.http.createUrl(`layers/${name}/export`, {

@@ -125,2 +125,3 @@ extent,

condition,
styleId,
});

@@ -133,2 +134,7 @@ }

}
classify({ name, attribute, classes, precision }) {
return this.http
.get(`layers/${name}/classify`, { attribute, classes, precision })
.json();
}
getByGeometry({ name, geometry, extentSr }) {

@@ -135,0 +141,0 @@ return this.http

@@ -7,2 +7,3 @@ import { ServiceBase } from './ServiceBase';

getTaskProgress(id: string): Promise<TaskProgressDc>;
cancelTask(id: string): Promise<void>;
startCopyTask(parameters?: CopyTaskParametersDc): Promise<TaskStatusDataDc>;

@@ -9,0 +10,0 @@ startBufferTask(parameters?: BufferTaskParametersDc): Promise<TaskStatusDataDc>;

@@ -22,2 +22,5 @@ /*

}
cancelTask(id) {
return this.http.delete(`${this.name}/tasks/${id}/cancel`).then(() => { });
}
startCopyTask(parameters) {

@@ -24,0 +27,0 @@ return this.http

@@ -7,2 +7,4 @@ import { DynamicLayer } from '@evergis/sgis/es/layers/DynamicLayer';

name: string;
private _style?;
style: string | undefined;
constructor(configuration: EvergisDynamicLayerParams, api: Api);

@@ -13,2 +15,3 @@ getUrl(bbox: Bbox, resolution: number): string;

name: string;
style?: string;
};

@@ -7,3 +7,11 @@ import { DynamicLayer } from '@evergis/sgis/es/layers/DynamicLayer';

this.name = configuration.name;
this._style = configuration.style;
}
set style(value) {
this._style = value;
this.redraw();
}
get style() {
return this._style;
}
getUrl(bbox, resolution) {

@@ -17,2 +25,3 @@ let imgWidth = Math.round((bbox.xMax - bbox.xMin) / resolution);

extentSr: bbox.crs.wkid,
styleId: this._style,
});

@@ -19,0 +28,0 @@ }

{
"name": "@evergis/api",
"version": "0.1.12",
"version": "0.1.13",
"license": "ISC",

@@ -5,0 +5,0 @@ "author": "everpoint",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc