@mapbox/mapbox-gl-supported

    2.0.0 • Public • Published

    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/mapbox-gl-supported
    var mapboxglSupported = require('@mapbox/mapbox-gl-supported');
    
    if (mapboxglSupported.supported()) {
        ...
    }

    Keywords

    none

    Install

    npm i @mapbox/mapbox-gl-supported

    DownloadsWeekly Downloads

    510,441

    Version

    2.0.0

    License

    BSD-3-Clause

    Unpacked Size

    11.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-07
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-09
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-08
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci
    • mapbox-npm
    • mapbox-admin
    • mapbox-machine-user