mapbox-gl-js-supported

A library to determine if a browser supports Mapbox GL JS

BSD-3-Clause 2 个版本
安装
npm install mapbox-gl-js-supported
yarn add mapbox-gl-js-supported
pnpm add mapbox-gl-js-supported
bun add mapbox-gl-js-supported
README

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-js-supported.js'></script>
<script>
if (mapboxgl.supported()) {
    ...
} else {
    ...
}
</script>

Using Mapbox GL JS Supported with Browserify

npm install --save mapbox-gl-js-supported
var isSupported = require('mapbox-gl-js-supported')();
版本列表
1.1.0 2016-04-18
1.0.0 2016-04-15