A library to determine if a browser supports Mapbox GL JS
Switch branches/tags
Nothing to show
Clone or download
Latest commit c177492 Jun 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc Initial commit Apr 15, 2016
.gitignore Ignore dist directory (#7) Jun 7, 2016
CONTRIBUTING.md Add deployment instructions Feb 22, 2017
LICENSE.txt Adding bsd-3-clause license, as intended by package.json Jan 26, 2017
README.md v1.3.0; move to @mapbox organization Dec 4, 2017
diagnostics.html Added diagnostics.html Mar 24, 2017
index.html Initial commit Apr 15, 2016
index.js Test ArrayBuffer.isView Jun 1, 2018
package.json v1.4.0 Jun 1, 2018

README.md

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 isSupported = require('@mapbox/mapbox-gl-supported')();