Socket
Socket
Sign inDemoInstall

@nextgis/webmap

Package Overview
Dependencies
Maintainers
2
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextgis/webmap - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

lib/interfaces/MapControl.d.ts

8

lib/interfaces/LayerAdapter.d.ts

@@ -9,3 +9,3 @@ interface AdapterOptions {

}
interface MvtOptions extends AdapterOptions {
export interface MvtAdapterOptions extends AdapterOptions {
paint?: any;

@@ -15,7 +15,11 @@ type?: 'fill' | 'line' | 'circle' | 'point';

}
export interface GeoJsonAdapterOptions extends AdapterOptions {
data?: any;
}
export interface LayerAdapters {
'MVT': MvtOptions;
'MVT': MvtAdapterOptions;
'IMAGE': AdapterOptions;
'OSM': AdapterOptions;
'TILE': AdapterOptions;
'GEOJSON': GeoJsonAdapterOptions;
[name: string]: AdapterOptions;

@@ -22,0 +26,0 @@ }

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

import { MapOptions } from '../webmap';
import { MapControls } from './MapControl';
interface LatLng {

@@ -44,3 +45,3 @@ lat: number;

setRotation?(angle: number): void;
addControl(controlDef: any, position: string): void;
addControl<C extends keyof MapControls>(controlName: C, position: string, options?: MapControls[C]): void;
getContainer(): HTMLElement;

@@ -47,0 +48,0 @@ onMapClick(evt: MapClickEvent): void;

import { WebMap } from './entities/WebMap';
import { AppOptions, MapOptions } from './interfaces/WebMapApp';
import { LayerAdapter, LayerAdapters } from './interfaces/LayerAdapter';
import { LayerAdapter, LayerAdapters, MvtAdapterOptions, GeoJsonAdapterOptions } from './interfaces/LayerAdapter';
import { MapAdapter } from './interfaces/MapAdapter';
import { StarterKit } from './interfaces/AppSettings';
import { DialogAdapter, DialogAdapterOptions } from './interfaces/DialogAdapter';
export { WebMap, AppOptions, LayerAdapter, LayerAdapters, MapAdapter, MapOptions, StarterKit, DialogAdapter, DialogAdapterOptions, };
import { MapControl, MapControls, AttributionControlOptions, ZoomControlOptions } from './interfaces/MapControl';
export { WebMap, AppOptions, LayerAdapter, LayerAdapters, MvtAdapterOptions, GeoJsonAdapterOptions, MapAdapter, MapOptions, StarterKit, DialogAdapter, DialogAdapterOptions, MapControl, MapControls, AttributionControlOptions, ZoomControlOptions, };
export declare function buildWebMap(appOpt: AppOptions, mapOpt: MapOptions): Promise<WebMap>;
{
"name": "@nextgis/webmap",
"version": "0.2.1",
"version": "0.2.2",
"description": "",

@@ -42,3 +42,3 @@ "main": "lib/webmap.js",

"license": "GPL-3.0",
"gitHead": "16ddb8f791196f047deb0e0ac17310e97e78ab19"
"gitHead": "13c53fbaeaee42f33e5cb114f6036c5b1ec007c5"
}
# WebMap
Universal map constructor

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