@mapbox/mapbox-gl-supported

A library to determine if a browser supports Mapbox GL JS

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/mapbox-gl-supported
3212.0.09 months ago4 years agoMinified + gzip package size for @mapbox/mapbox-gl-supported in KB

Readme

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()) {
    ...
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.