mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[mapbox-gl] Add antialias property to MapboxOptions (take 2) (#37878)
* Add `antialias` property to MapboxOptions * add a test
This commit is contained in:
Vendored
+6
@@ -250,6 +250,12 @@ declare namespace mapboxgl {
|
||||
}
|
||||
|
||||
export interface MapboxOptions {
|
||||
/**
|
||||
* If true, the gl context will be created with MSA antialiasing, which can be useful for antialiasing custom layers.
|
||||
* This is false by default as a performance optimization.
|
||||
*/
|
||||
antialias?: boolean;
|
||||
|
||||
/** If true, an attribution control will be added to the map. */
|
||||
attributionControl?: boolean;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ let map = new mapboxgl.Map({
|
||||
boxZoom: true,
|
||||
dragRotate: false,
|
||||
dragPan: true,
|
||||
antialias: true,
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user