github
4769 of 5426 branches covered (87.89%)
Branch coverage included in aggregate %.
13 of 14 new or added lines in 3 files covered. (92.86%)
6810 existing lines in 148 files now uncovered.47083 of 58727 relevant lines covered (80.17%)
4937.04 hits per line
UNCOV
1
|
// deck.gl
|
|
UNCOV
2
|
// SPDX-License-Identifier: MIT
|
× |
UNCOV
3
|
// Copyright (c) vis.gl contributors
|
× |
UNCOV
4
|
|
× |
UNCOV
5
|
/* global document */
|
× |
UNCOV
6
|
import {loadCSS} from './css-utils'; |
× |
UNCOV
7
|
|
× |
UNCOV
8
|
import mapboxgl from 'mapbox-gl'; |
× |
UNCOV
9
|
|
× |
UNCOV
10
|
const MAPBOX_CSS_URL = 'https://api.tiles.mapbox.com/mapbox-gl-js/v1.13.2/mapbox-gl.css';
|
× |
UNCOV
11
|
|
× |
UNCOV
12
|
export default mapboxgl; |
× |
UNCOV
13
|
|
× |
UNCOV
14
|
export function loadMapboxCSS(url = MAPBOX_CSS_URL) { |
× |
15 |
loadCSS(url); |
× |
16 |
} |
× |
17 |
|
× |
18 |
/**
|
× |
UNCOV
19
|
* Hides elements in the mapbox-gl.js library and adds pydeck tag |
× |
UNCOV
20
|
*/ |
× |
UNCOV
21
|
export function modifyMapboxElements() { |
× |
UNCOV
22
|
const classes = ['mapboxgl-missing-css'];
|
× |
UNCOV
23
|
for (const c of classes) {
|
× |
UNCOV
24
|
const el = document.getElementsByClassName(c)[0];
|
× |
UNCOV
25
|
if (el && el.style) {
|
× |
UNCOV
26
|
el.style.display = 'none';
|
× |
UNCOV
27
|
} |
× |
UNCOV
28
|
} |
× |
29 |
} |
× |