mapbox-gl-supported

A library to determine if a browser supports Mapbox GL JS

BSD-3-Clause 2 个版本
安装
npm install mapbox-gl-supported
yarn add mapbox-gl-supported
pnpm add mapbox-gl-supported
bun add mapbox-gl-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-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')();
版本列表
1.2.0 2016-07-13
1.1.0 2016-06-08