mapbox-gl-supported

A library to determine if a browser supports Mapbox GL JS

This package has been moved to @mapbox/mapbox-gl-supported
Last updated 9 years ago by lucaswoj .
BSD-3-Clause · Repository · Bugs · Original npm
$ cnpm install 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-gl-supported
var isSupported = require('mapbox-gl-supported')();

Current Tags

  • 1.2.0                                ...           latest (9 years ago)

1 Versions

  • 1.2.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org