Mapbox-gl-js: Move mapboxgl.supported logic into standalone module

Created on 12 Apr 2016  路  4Comments  路  Source: mapbox/mapbox-gl-js

Presently, end users are required to include all of mapbox-gl.js in order to test if it is supported. This is impractical for bandwidth-conscious users who are implementing fallback to mapbox.js.

feature good first issue needs discussion

Most helpful comment

I have moved the necessary logic to https://github.com/mapbox/mapbox-gl-js-supported

Next Steps

All 4 comments

:+1:

This would greatly improve the experience for Android devices that don't support WebGL. We could use this to _only_ download the GL or raster code and not double up. Critical for 2G/3G networks.

Agreed, I'd love to see a solution for this.

I have moved the necessary logic to https://github.com/mapbox/mapbox-gl-js-supported

Next Steps

@bhousel Does this look ready to 馃殺?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yoursweater picture yoursweater  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

muesliq picture muesliq  路  3Comments

PBrockmann picture PBrockmann  路  3Comments

shotor picture shotor  路  3Comments