1.2.0 • Published 8 years ago
mapbox-gl-supported v1.2.0
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-gl-supported
var isSupported = require('mapbox-gl-supported')();