Socket
Socket
Sign inDemoInstall

@types/mapbox-gl

Package Overview
Dependencies
1
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.27.0 to 0.29.0

32

mapbox-gl/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for Mapbox GL JS v0.27.0
// Type definitions for Mapbox GL JS v0.29.0
// Project: https://github.com/mapbox/mapbox-gl-js

@@ -67,2 +67,4 @@ // Definitions by: Dominik Bruderer <https://github.com/dobrud>

moveLayer(id: string, beforeId?: string): this;
removeLayer(id: string): this;

@@ -334,2 +336,8 @@

export interface IControl {
onAdd(map: Map): HTMLElement;
onRemove(map: Map): any;
getDefaultPosition(): string;
}
/**

@@ -348,2 +356,8 @@ * Control

export class PositionOptions {
enableHighAccuracy?: boolean;
timeout?: number;
maximumAge?: number;
}
/**

@@ -353,3 +367,3 @@ * Geolocate

export class GeolocateControl extends Control {
constructor();
constructor(options?: {positionOptions?: PositionOptions, watchPosition?: boolean});
}

@@ -711,2 +725,5 @@

dataType: "source" | "style" | "tile";
isSourceLoaded?: boolean;
source?: mapboxgl.Source;
coord?: any;
}

@@ -768,2 +785,5 @@

click?: {data: mapboxgl.MapMouseEvent};
tiledataloading?: {data: mapboxgl.MapDataEvent};
sourcedataloading?: {data: mapboxgl.MapDataEvent};
styledataloading?: {data: mapboxgl.MapDataEvent};
touchcancel?: {data: mapboxgl.MapTouchEvent};

@@ -781,2 +801,4 @@ touchmove?: {data: mapboxgl.MapTouchEvent};

load?: void;
sourcedata?: {data: mapboxgl.MapDataEvent};
styledata?: {data: mapboxgl.MapDataEvent};
zoomend?: {data: mapboxgl.MapMouseEvent | mapboxgl.MapTouchEvent};

@@ -855,2 +877,3 @@ zoom?: {data: mapboxgl.MapMouseEvent | mapboxgl.MapTouchEvent};

"fill-extrusion-translate-anchor"?: "map" | "viewport";
"fill-extrusion-pattern": string;
"fill-extrusion-height"?: number | StyleFunction;

@@ -899,3 +922,3 @@ "fill-extrusion-base"?: number;

"icon-keep-upright"?: boolean;
"icon-offset"?: number[];
"icon-offset"?: number[] | StyleFunction;
"text-pitch-alignment"?: "map" | "viewport" | "auto";

@@ -966,2 +989,5 @@ "text-rotation-alignment"?: "map" | "viewport" | "auto";

"circle-pitch-scale"?: "map" | "viewport";
"circle-stroke-width"?: number | StyleFunction;
"circle-stoke-color"?: string | StyleFunction;
"circle-stroke-opactiy"?: number | StyleFunction;
}

@@ -968,0 +994,0 @@ }

8

mapbox-gl/package.json
{
"name": "@types/mapbox-gl",
"version": "0.27.0",
"description": "TypeScript definitions for Mapbox GL JS v0.27.0",
"version": "0.29.0",
"description": "TypeScript definitions for Mapbox GL JS",
"license": "MIT",

@@ -17,4 +17,4 @@ "author": "Dominik Bruderer <https://github.com/dobrud>",

"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "2f3787dfe0170eb6d8bf66b2df641e6a3f8c6154a4c7ebed52cc3aec30c73d1e"
"typesPublisherContentHash": "d9f5298a0c14566eb7852d12cf0933bba4b51b3a233e337e14de30434d5388ce",
"typeScriptVersion": "2.0"
}

@@ -5,10 +5,9 @@ # Installation

# Summary
This package contains type definitions for Mapbox GL JS v0.27.0 (https://github.com/mapbox/mapbox-gl-js).
This package contains type definitions for Mapbox GL JS (https://github.com/mapbox/mapbox-gl-js).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/mapbox-gl
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/mapbox-gl
Additional Details
* Last updated: Tue, 22 Nov 2016 23:38:11 GMT
* File structure: OldUMD
* Last updated: Tue, 03 Jan 2017 23:16:42 GMT
* Library Dependencies: geojson

@@ -15,0 +14,0 @@ * Module Dependencies: none

{
"authors": "Dominik Bruderer <https://github.com/dobrud>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [

@@ -9,9 +8,9 @@ "geojson"

"libraryMajorVersion": 0,
"libraryMinorVersion": 27,
"libraryName": "Mapbox GL JS v0.27.0",
"libraryMinorVersion": 29,
"typeScriptVersion": "2.0",
"libraryName": "Mapbox GL JS",
"typingsPackageName": "mapbox-gl",
"projectName": "https://github.com/mapbox/mapbox-gl-js",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "OldUMD",
"sourceBranch": "master",
"globals": [

@@ -27,3 +26,3 @@ "mapboxgl"

"hasPackageJson": false,
"contentHash": "2f3787dfe0170eb6d8bf66b2df641e6a3f8c6154a4c7ebed52cc3aec30c73d1e"
"contentHash": "d9f5298a0c14566eb7852d12cf0933bba4b51b3a233e337e14de30434d5388ce"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc