tahamajs's picture
|
download
raw
627 Bytes
# Mapbox GL JS Supported
This library determines if a browser supports [Mapbox GL JS](http://github.com/mapbox/mapbox-gl-js).
## Testing Your Browser
You may test your browser [here](http://mapbox.github.io/mapbox-gl-supported).
## Using Mapbox GL JS Supported with a `<script>` tag
```html
<script src='mapbox-gl-supported.js'></script>
<script>
if (mapboxgl.supported()) {
...
} else {
...
}
</script>
```
## Using Mapbox GL JS Supported with [Browserify](http://browserify.org/)
```bash
npm install --save @mapbox/mapbox-gl-supported
```
```js
var isSupported = require('@mapbox/mapbox-gl-supported')();
```

Xet Storage Details

Size:
627 Bytes
·
Xet hash:
8b6e3379540c486b1d4c32cce3cb75d20057af9829cc30229b30d659c96852ba

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.