@nextgis/webmap
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
191783
27
1839