Skip to content

A library to determine if a browser supports Mapbox GL JS

License

Notifications You must be signed in to change notification settings

fishergisdldt/mapbox-gl-supported

 
 

Repository files navigation

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')();

About

A library to determine if a browser supports Mapbox GL JS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 57.7%
  • JavaScript 42.3%