@mapbox/mapbox-gl-supported

@mapbox/mapbox-gl-supported JS library on GitHub @mapbox/mapbox-gl-supported JS library on npm Download @mapbox/mapbox-gl-supported JS library

A library to determine if a browser supports Mapbox GL JS

Version 3.0.0 License BSD-3-Clause
@mapbox/mapbox-gl-supported has no homepage
@mapbox/mapbox-gl-supported JS library on GitHub
@mapbox/mapbox-gl-supported JS library on npm
Download @mapbox/mapbox-gl-supported JS library

Mapbox GL JS Supported

This library determines if a browser supports Mapbox GL JS.

Testing Your Browser

You may test your browser here.

Using Mapbox GL JS Supported with a <script> tag

<script src='mapbox-gl-supported.js'></script>
<script>
if (mapboxgl.supported()) {
    ...
} else {
    ...
}
</script>

Using Mapbox GL JS Supported with Browserify

npm install --save @mapbox/mapbox-gl-supported
var mapboxglSupported = require('@mapbox/mapbox-gl-supported');

if (mapboxglSupported.supported()) {
    ...
}