Null Pointer Micromanagement

    @mapbox/mapbox-gl-supported
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.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 isSupported = require('@mapbox/mapbox-gl-supported')();

    Keywords

    none

    Install

    npm i @mapbox/mapbox-gl-supported@1.5.0

    Version

    1.5.0

    License

    BSD-3-Clause

    Unpacked Size

    17 kB

    Total Files

    8

    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