[mapbox-gl] Add antialias property to MapboxOptions (take 2) (#37878)

* Add `antialias` property to MapboxOptions

* add a test
This commit is contained in:
alecf
2019-08-23 14:25:12 -07:00
committed by Sheetal Nandi
parent b8fe66d9bc
commit 63b8cdc3a3
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -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;
+1
View File
@@ -31,6 +31,7 @@ let map = new mapboxgl.Map({
boxZoom: true,
dragRotate: false,
dragPan: true,
antialias: true,
});
/**