supported static method

bool supported(
  1. bool failIfMajorPerformanceCaveat
)

Test whether the browser supports Mapbox GL JS.

@function supported @param {boolean} failIfMajorPerformanceCaveat=false If true, the function will return false if the performance of Mapbox GL JS would be dramatically worse than expected (e.g. a software WebGL renderer would be used). @return {boolean} @example mapboxgl.supported() // = true @see Check for browser support

Implementation

external static bool supported(bool failIfMajorPerformanceCaveat);