@types/mapbox-gl
Advanced tools
Comparing version 0.42.0 to 0.43.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Mapbox GL JS v0.42.2 | ||
// Type definitions for Mapbox GL JS v0.43.0 | ||
// Project: https://github.com/mapbox/mapbox-gl-js | ||
@@ -60,5 +60,5 @@ // Definitions by: Dominik Bruderer <https://github.com/dobrud>, Patrick Reames <https://github.com/patrickr> | ||
queryRenderedFeatures(pointOrBox?: PointLike | PointLike[], parameters?: { layers?: string[], filter?: any[] }): GeoJSON.Feature<GeoJSON.GeometryObject>[]; | ||
queryRenderedFeatures(pointOrBox?: PointLike | PointLike[], parameters?: { layers?: string[], filter?: any[] }): GeoJSON.Feature<GeoJSONGeometry>[]; | ||
querySourceFeatures(sourceID: string, parameters?: { sourceLayer?: string, filter?: any[] }): GeoJSON.Feature<GeoJSON.GeometryObject>[]; | ||
querySourceFeatures(sourceID: string, parameters?: { sourceLayer?: string, filter?: any[] }): GeoJSON.Feature<GeoJSONGeometry>[]; | ||
@@ -83,2 +83,4 @@ setStyle(style: mapboxgl.Style | string): this; | ||
hasImage(name: string): boolean; | ||
removeImage(name: string): this; | ||
@@ -98,3 +100,3 @@ | ||
setLayerZoomRange(layerId: string, minzoom: number, maxzoom: number): this; | ||
setLayerZoomRange(layerId: string, minzoom?: number, maxzoom?: number): this; | ||
@@ -505,2 +507,4 @@ getFilter(layer: string): any[]; | ||
export type GeoJSONGeometry = GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPoint | GeoJSON.Polygon | GeoJSON.MultiLineString | GeoJSON.MultiPolygon | GeoJSON.GeometryCollection; | ||
/** | ||
@@ -519,7 +523,7 @@ * GeoJSONSource | ||
setData(data: GeoJSON.Feature<GeoJSON.GeometryObject> | GeoJSON.FeatureCollection<GeoJSON.GeometryObject> | String): this; | ||
setData(data: GeoJSON.Feature<GeoJSONGeometry> | GeoJSON.FeatureCollection<GeoJSONGeometry> | String): this; | ||
} | ||
export interface GeoJSONSourceOptions { | ||
data?: GeoJSON.Feature<GeoJSON.GeometryObject> | GeoJSON.FeatureCollection<GeoJSON.GeometryObject> | string; | ||
data?: GeoJSON.Feature<GeoJSONGeometry> | GeoJSON.FeatureCollection<GeoJSONGeometry> | string; | ||
@@ -761,2 +765,6 @@ maxzoom?: number; | ||
getOffset(): PointLike; | ||
setOffset(offset: PointLike): this; | ||
togglePopup(): this; | ||
@@ -763,0 +771,0 @@ } |
{ | ||
"name": "@types/mapbox-gl", | ||
"version": "0.42.0", | ||
"version": "0.43.0", | ||
"description": "TypeScript definitions for Mapbox GL JS", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "dbb5041a3119528b9b9c0292ae0ff97702d7611bcdc07fc6005b31e41872a584", | ||
"typesPublisherContentHash": "e3b8ee1da26c24996ff78f3ee175c1b4950d37ed06a047463211213b30b1bd1f", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sun, 03 Dec 2017 16:26:42 GMT | ||
* Last updated: Fri, 12 Jan 2018 18:52:17 GMT | ||
* Dependencies: geojson | ||
@@ -14,0 +14,0 @@ * Global values: mapboxgl |
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
34788
810