Package Exports
- mapbox-gl-js-supported
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mapbox-gl-js-supported) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-js-supported.js'></script>
<script>
if (mapboxgl.supported()) {
...
} else {
...
}
</script>
Using Mapbox GL JS Supported with Browserify
npm install --save mapbox-gl-js-supported
var isSupported = require('mapbox-gl-js-supported')();