@types/mapbox-gl
Advanced tools
Comparing version 0.26.0 to 0.27.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Mapbox GL JS v0.26.0 | ||
// Type definitions for Mapbox GL JS v0.27.0 | ||
// Project: https://github.com/mapbox/mapbox-gl-js | ||
@@ -19,4 +19,6 @@ // Definitions by: Dominik Bruderer <https://github.com/dobrud> | ||
addControl(control: Control): this; | ||
addControl(control: Control, position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'): this; | ||
removeControl(control: Control): this; | ||
addClass(klass: string, options?: mapboxgl.StyleOptions): this; | ||
@@ -40,4 +42,8 @@ | ||
getMinZoom(): number; | ||
setMaxZoom(maxZoom?: number): this; | ||
getMaxZoom(): number; | ||
project(lnglat: mapboxgl.LngLat | number[]): mapboxgl.Point; | ||
@@ -333,19 +339,9 @@ | ||
export class Control extends Evented { | ||
addTo(map: mapboxgl.Map): this; | ||
remove(): this; | ||
} | ||
/** | ||
* ControlOptions | ||
*/ | ||
export interface ControlOptions { | ||
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; | ||
} | ||
/** | ||
* Navigation | ||
*/ | ||
export class NavigationControl extends Control { | ||
constructor(options?: mapboxgl.ControlOptions); | ||
constructor(); | ||
} | ||
@@ -357,3 +353,3 @@ | ||
export class GeolocateControl extends Control { | ||
constructor(options?: mapboxgl.ControlOptions); | ||
constructor(); | ||
} | ||
@@ -365,3 +361,3 @@ | ||
export class AttributionControl extends Control { | ||
constructor(options?: mapboxgl.ControlOptions); | ||
constructor(); | ||
} | ||
@@ -373,3 +369,3 @@ | ||
export class ScaleControl extends Control { | ||
constructor(options?: {position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left', maxWidth?: number, unit?: string}) | ||
constructor(options?: {maxWidth?: number, unit?: string}) | ||
} | ||
@@ -418,2 +414,3 @@ | ||
pitch?: number; | ||
light?: Light; | ||
sources?: any; | ||
@@ -431,2 +428,9 @@ sprite?: string; | ||
export interface Light { | ||
"anchor"?: "map" | "viewport"; | ||
"position"?: number[]; | ||
"color"?: string; | ||
"intensity"?: number; | ||
} | ||
export interface Source { | ||
@@ -810,4 +814,4 @@ type: "vector" | "raster" | "geojson" | "image" | "video"; | ||
filter?: any[]; | ||
layout?: BackgroundLayout | FillLayout | LineLayout | SymbolLayout | RasterLayout | CircleLayout; | ||
paint?: BackgroundPaint | FillPaint | LinePaint | SymbolPaint | RasterPaint | CirclePaint; | ||
layout?: BackgroundLayout | FillLayout | FillExtrusionLayout | LineLayout | SymbolLayout | RasterLayout | CircleLayout; | ||
paint?: BackgroundPaint | FillPaint | FillExtrusionPaint | LinePaint | SymbolPaint | RasterPaint | CirclePaint; | ||
} | ||
@@ -843,6 +847,16 @@ | ||
"fill-pattern"?: "string"; | ||
"fill-extrude-height"?: number; | ||
"fill-extrude-base"?: number; | ||
} | ||
export interface FillExtrusionLayout { | ||
visibility?: "visible" | "none"; | ||
} | ||
export interface FillExtrusionPaint { | ||
"fill-extrusion-opacity"?: number; | ||
"fill-extrusion-color"?: string | StyleFunction; | ||
"fill-extrusion-translate"?: number[]; | ||
"fill-extrusion-translate-anchor"?: "map" | "viewport"; | ||
"fill-extrusion-height"?: number | StyleFunction; | ||
"fill-extrusion-base"?: number; | ||
} | ||
export interface LineLayout { | ||
@@ -849,0 +863,0 @@ visibility?: "visible" | "none"; |
{ | ||
"name": "@types/mapbox-gl", | ||
"version": "0.26.0", | ||
"description": "TypeScript definitions for Mapbox GL JS v0.26.0", | ||
"version": "0.27.0", | ||
"description": "TypeScript definitions for Mapbox GL JS v0.27.0", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "author": "Dominik Bruderer <https://github.com/dobrud>", | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "91fdd6b4c00ba118cb86104532bc8628ecacfc02e34c2866d4db0868dcca0a35" | ||
"typesPublisherContentHash": "2f3787dfe0170eb6d8bf66b2df641e6a3f8c6154a4c7ebed52cc3aec30c73d1e" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Mapbox GL JS v0.26.0 (https://github.com/mapbox/mapbox-gl-js). | ||
This package contains type definitions for Mapbox GL JS v0.27.0 (https://github.com/mapbox/mapbox-gl-js). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Mon, 14 Nov 2016 19:34:57 GMT | ||
* Last updated: Tue, 22 Nov 2016 23:38:11 GMT | ||
* File structure: OldUMD | ||
@@ -15,0 +15,0 @@ * Library Dependencies: geojson |
@@ -9,4 +9,4 @@ { | ||
"libraryMajorVersion": 0, | ||
"libraryMinorVersion": 26, | ||
"libraryName": "Mapbox GL JS v0.26.0", | ||
"libraryMinorVersion": 27, | ||
"libraryName": "Mapbox GL JS v0.27.0", | ||
"typingsPackageName": "mapbox-gl", | ||
@@ -27,3 +27,3 @@ "projectName": "https://github.com/mapbox/mapbox-gl-js", | ||
"hasPackageJson": false, | ||
"contentHash": "91fdd6b4c00ba118cb86104532bc8628ecacfc02e34c2866d4db0868dcca0a35" | ||
"contentHash": "2f3787dfe0170eb6d8bf66b2df641e6a3f8c6154a4c7ebed52cc3aec30c73d1e" | ||
} |
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
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
26016
728