mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 01:30:17 +00:00
Merge pull request #19384 from patrickr/master
mapbox-gl: GeolocationControl and pitch-alignment support v0.39.0
This commit is contained in:
10
types/mapbox-gl/index.d.ts
vendored
10
types/mapbox-gl/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Mapbox GL JS v0.39.1
|
||||
// Project: https://github.com/mapbox/mapbox-gl-js
|
||||
// Definitions by: Dominik Bruderer <https://github.com/dobrud>
|
||||
// Definitions by: Dominik Bruderer <https://github.com/dobrud>, Patrick Reames <https://github.com/patrickr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="geojson" />
|
||||
@@ -395,12 +395,16 @@ declare namespace mapboxgl {
|
||||
timeout?: number;
|
||||
maximumAge?: number;
|
||||
}
|
||||
|
||||
export class FitBoundsOptions {
|
||||
maxZoom?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Geolocate
|
||||
*/
|
||||
export class GeolocateControl extends Control {
|
||||
constructor(options?: {positionOptions?: PositionOptions, watchPosition?: boolean});
|
||||
constructor(options?: {positionOptions?: PositionOptions, fitBoundsOptions?: FitBoundsOptions, trackUserLocation?: boolean, showUserLocation?: boolean});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -991,6 +995,7 @@ declare namespace mapboxgl {
|
||||
"icon-ignore-placement"?: boolean;
|
||||
"icon-optional"?: boolean;
|
||||
"icon-rotation-alignment"?: "map" | "viewport" | "auto";
|
||||
"icon-pitch-alignment"?: "map" | "viewport"| "auto";
|
||||
"icon-size"?: number | StyleFunction;
|
||||
"icon-text-fit"?: "none" | "both" | "width" | "height";
|
||||
"icon-text-fit-padding"?: number[];
|
||||
@@ -1064,6 +1069,7 @@ declare namespace mapboxgl {
|
||||
"circle-translate"?: number[];
|
||||
"circle-translate-anchor"?: "map" | "viewport";
|
||||
"circle-pitch-scale"?: "map" | "viewport";
|
||||
"circle-pitch-alignment"?: "map" | "viewport";
|
||||
"circle-stroke-width"?: number | StyleFunction;
|
||||
"circle-stroke-color"?: string | StyleFunction;
|
||||
"circle-stroke-opacity"?: number | StyleFunction;
|
||||
|
||||
Reference in New Issue
Block a user