close
Skip to content

mapbox/mapbox-gl-supported

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.isSupported()) {
    ...
} else {
    ...
}
</script>

Using Mapbox GL JS Supported as a module

npm install --save @mapbox/mapbox-gl-supported
import {isSupported} from '@mapbox/mapbox-gl-supported';

if (isSupported()) {
    ...
}

About

A library to determine if a browser supports Mapbox GL JS

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors