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 = {
32
32
'More info here: https://www.mapbox.com/help/define-access-token/'
33
33
] . join ( '\n' ) ,
34
34
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
+ }
36
42
} ;
Original file line number Diff line number Diff line change 6
6
* LICENSE file in the root directory of this source tree.
7
7
*/
8
8
9
-
10
9
'use strict' ;
11
10
12
11
var mapboxgl = require ( 'mapbox-gl' ) ;
@@ -20,6 +19,9 @@ var constants = require('./constants');
20
19
21
20
var MAPBOX = 'mapbox' ;
22
21
22
+ for ( var k in constants . styleRules ) {
23
+ Lib . addStyleRule ( '.mapboxgl-' + k , constants . styleRules [ k ] ) ;
24
+ }
23
25
24
26
exports . name = MAPBOX ;
25
27
You can’t perform that action at this time.
0 commit comments