Spaces:
Paused
Paused
|
Download node_modules/@mapbox/mapbox-gl-supported/README.md from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/mapbox-gl-supported/README.md
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@mapbox/mapbox-gl-supported/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/mapbox-gl-supported/README.md
627 Bytes
| # Mapbox GL JS Supported | |
| This library determines if a browser supports [Mapbox GL JS](http://github.com/mapbox/mapbox-gl-js). | |
| ## Testing Your Browser | |
| You may test your browser [here](http://mapbox.github.io/mapbox-gl-supported). | |
| ## Using Mapbox GL JS Supported with a `<script>` tag | |
| ```html | |
| <script src='mapbox-gl-supported.js'></script> | |
| <script> | |
| if (mapboxgl.supported()) { | |
| ... | |
| } else { | |
| ... | |
| } | |
| </script> | |
| ``` | |
| ## Using Mapbox GL JS Supported with [Browserify](http://browserify.org/) | |
| ```bash | |
| npm install --save @mapbox/mapbox-gl-supported | |
| ``` | |
| ```js | |
| var isSupported = require('@mapbox/mapbox-gl-supported')(); | |
| ``` | |