Socket
Socket
Sign inDemoInstall

@nextgis/ol-map-adapter

Package Overview
Dependencies
Maintainers
2
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextgis/ol-map-adapter - npm Package Compare versions

Comparing version 0.9.2 to 0.9.7

2

lib/webmap/src/components/entry/properties/BaseProperty.d.ts

@@ -29,3 +29,3 @@ /// <reference types="node" />

set(value: V, options?: O): void;
value(): V;
get(): V;
update(value?: V, options?: O): void;

@@ -32,0 +32,0 @@ getContainer(): HTMLElement;

@@ -33,5 +33,5 @@ import { BaseProperty, IEntryBasePropertyOptions } from './BaseProperty';

update(): void;
value(name: any): () => any;
get(name: string): any;
set<K extends keyof IEntryPropertyTypes>(name: string, value: IEntryPropertyTypes[K], options?: IEntryBasePropertyOptions<IEntryPropertyTypes[K]>): void;
get(name: any): BaseProperty<any, IEntryBasePropertyOptions<any>>;
property(name: any): BaseProperty<any, IEntryBasePropertyOptions<any>>;
list(): BaseProperty<any, IEntryBasePropertyOptions<any>>[];

@@ -38,0 +38,0 @@ destroy(): void;

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { EventEmitter } from 'events';
import { MapControls, MapControl } from './MapControl';
import { MapControls, MapControl, CreateControlOptions, CreateButtonControlOptions } from './MapControl';
import { MapOptions } from './WebMapApp';

@@ -43,3 +43,3 @@ import { LayerMem } from '../WebMap';

}
export interface MapAdapter<M = any, L = any> extends BaseMapAdapter {
export interface MapAdapter<M = any, L = any, C = any> extends BaseMapAdapter {
lonlatProjection?: string;

@@ -55,3 +55,5 @@ displayProjection?: string;

getContainer(): HTMLElement;
addControl<C extends keyof MapControls>(controlName: C | MapControl, position: ControlPositions, options?: MapControls[C]): any;
createControl?(control: MapControl, options?: CreateControlOptions): C;
createButtonControl?(options: CreateButtonControlOptions): C;
addControl<K extends keyof MapControls>(controlName: K | any, position: ControlPositions, options?: MapControls[K]): any;
onMapClick(evt: MapClickEvent): void;

@@ -58,0 +60,0 @@ requestGeomString?(pixel: {

@@ -17,4 +17,11 @@ export interface ZoomControlOptions {

export interface MapControl<M extends any = any> {
onAdd?(map?: M): any;
onRemove?(map?: M): any;
onAdd(map?: M): any;
onRemove(map?: M): any;
}
export interface CreateButtonControlOptions {
html: string | HTMLElement;
onClick: () => void;
}
export interface CreateControlOptions {
bar?: boolean;
}
export declare function isType(v: any): v is Type<any>;
export interface Type<T> extends Function {
new (...args: any[]): T;
}
export declare type Type<T> = new (...args: any[]) => T;

@@ -11,3 +11,3 @@ /// <reference types="node" />

import { Type } from './utils/Type';
import { MapControl, MapControls } from './interfaces/MapControl';
import { MapControl, MapControls, CreateControlOptions, CreateButtonControlOptions } from './interfaces/MapControl';
export interface LayerMem<L = any> {

@@ -21,3 +21,3 @@ id: string;

}
export declare class WebMap<M = any> {
export declare class WebMap<M = any, L = any, C = any> {
options: MapOptions;

@@ -59,3 +59,5 @@ displayProjection: string;

isLayerOnTheMap(layerName: string): boolean;
addControl<C extends keyof MapControls>(controlDef: C | MapControl, position: ControlPositions, options?: MapControls[C]): any;
createControl(control: MapControl, options: CreateControlOptions): C;
createButtonControl(options: CreateButtonControlOptions): any;
addControl<K extends keyof MapControls>(controlDef: K | MapControl, position: ControlPositions, options?: MapControls[K]): any;
addLayer<K extends keyof LayerAdapters>(layerAdapter: K | Type<LayerAdapter>, options?: LayerAdapters[K], baselayer?: boolean): Promise<LayerAdapter>;

@@ -68,3 +70,3 @@ removeLayer(layerName: string): void;

getResolutionForScale(scale: any, mpu: any): number;
toggleLayer(layerName: string, status: boolean): void;
toggleLayer(layerName: string, status?: boolean): void;
requestGeomString(pixel: any, pixelRadius: any): string;

@@ -71,0 +73,0 @@ onMapClick(evt: any): void;

{
"name": "@nextgis/ol-map-adapter",
"version": "0.9.2",
"version": "0.9.7",
"description": "",

@@ -9,3 +9,3 @@ "main": "lib/ol-map-adapter.js",

"dependencies": {
"@nextgis/webmap": "^0.9.2",
"@nextgis/webmap": "^0.9.7",
"events": "*",

@@ -51,3 +51,3 @@ "ol": "^5.3.0"

"license": "LGPL 3.0",
"gitHead": "2505c8be0ae2d9f7f5939fd4438ed4e128b81f1c"
"gitHead": "78a3f05296d16b10ee17b3e76fb606425eb19fe3"
}
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