$ npm install @mapbox/mapbox-gl-supported
This library determines if a browser supports Mapbox GL JS.
You may test your browser here.
<script>
tag<script src='mapbox-gl-supported.js'></script>
<script>
if (mapboxgl.supported()) {
...
} else {
...
}
</script>
npm install --save @mapbox/mapbox-gl-supported
var mapboxglSupported = require('@mapbox/mapbox-gl-supported');
if (mapboxglSupported.supported()) {
...
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE