File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32,5 +32,11 @@ module.exports = {
3232 'More info here: https://www.mapbox.com/help/define-access-token/'
3333 ] . join ( '\n' ) ,
3434
35- mapOnErrorMsg : 'Mapbox error.'
35+ mapOnErrorMsg : 'Mapbox error.' ,
36+
37+ // a subset of node_modules/mapbox-gl/dist/mapbox-gl.css
38+ styleRules : {
39+ map : 'overflow:hidden;position:relative;' ,
40+ 'missing-css' : 'display:none' ,
41+ }
3642} ;
Original file line number Diff line number Diff line change 66* LICENSE file in the root directory of this source tree.
77*/
88
9-
109'use strict' ;
1110
1211var mapboxgl = require ( 'mapbox-gl' ) ;
@@ -20,6 +19,9 @@ var constants = require('./constants');
2019
2120var MAPBOX = 'mapbox' ;
2221
22+ for ( var k in constants . styleRules ) {
23+ Lib . addStyleRule ( '.mapboxgl-' + k , constants . styleRules [ k ] ) ;
24+ }
2325
2426exports . name = MAPBOX ;
2527
You can’t perform that action at this time.
0 commit comments