@mapbox/mapbox-gl-supported
A library to determine if a browser supports Mapbox GL JS
Last updated 9 months ago by mapbox-npm-05 .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @mapbox/mapbox-gl-supported 
SYNC missed versions from official npm registry.

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

if (mapboxglSupported.supported()) {
    ...
}

Current Tags

  • 3.0.0                                ...           latest (9 months ago)

8 Versions

  • 3.0.0                                ...           9 months ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.5.0                                ...           5 years ago
  • 1.4.1                                ...           5 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE