Skip to content

Commit

Permalink
【fix】UT
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Apr 28, 2024
1 parent 3ea86c8 commit 7bd6866
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/mapboxgl/include-mapboxgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
inputScript(libsurl+ '/mapboxgl-l7-render/index.js');
}
if (inArray(includes, 'g2')) {
inputScript('https://cdnjs.cloudflare.com/ajax/libs/antv-g2/4.2.8/g2.min.js');
inputScript(libsurl + '/antv/g2/4.2.8/g2.min.js');
}
if (inArray(includes, 'g6')) {
inputScript(libsurl + '/antv/g6/4.3.2/g6.min.js');
Expand Down
12 changes: 7 additions & 5 deletions dist/maplibregl/include-maplibregl.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@

//加载类库资源文件
function load(config) {
var libsurl = '../../web/libs';
var libsurl = config.libsurl;
var disturl = config.disturl;
var includes = (targetScript.getAttribute('include') || '').split(',');
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
if (!inArray(excludes, 'maplibregl')) {
Expand All @@ -61,7 +62,7 @@
inputScript(libsurl + '/maplibregl-l7-render/index.js');
}
if (inArray(includes, 'g2')) {
inputScript('https://cdnjs.cloudflare.com/ajax/libs/antv-g2/4.2.8/g2.min.js');
inputScript(libsurl + '/antv/g2/4.2.8/g2.min.js');
}
if (inArray(includes, 'turf')) {
inputScript(libsurl + '/turf/6.5.0/turf.min.js');
Expand Down Expand Up @@ -188,15 +189,16 @@
}
if (!inArray(excludes, 'iclient-maplibregl')) {
if (supportES6()) {
inputScript('../../dist/maplibregl/iclient-maplibregl-es6.min.js');
inputScript(disturl + '/maplibregl/iclient-maplibregl-es6.min.js');
} else {
inputScript('../../dist/maplibregl/iclient-maplibregl.min.js');
inputScript(disturl + '/maplibregl/iclient-maplibregl.min.js');
}
}
}

load({
libsurl: 'https://iclient.supermap.io/web/libs'
libsurl: 'https://iclient.supermap.io/web/libs',
disturl: '../../dist'
});
window.isLocal = false;
window.server = document.location.toString().match(/file:\/\//)
Expand Down
2 changes: 1 addition & 1 deletion test/mapboxgl/overlay/L7LayerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { L7Layer } from '../../../src/mapboxgl/overlay/L7Layer';

var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';

describe('L7Layer', () => {
describe('mapboxgl L7Layer', () => {
var originalTimeout;
var testDiv, map, getL7Scene, setLayoutProperty;
var data = [
Expand Down
2 changes: 1 addition & 1 deletion test/maplibregl/core/MapExtendSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '../../../src/maplibregl/core/MapExtend';
import maplibregl from 'maplibre-gl';
import { L7Layer } from '../../../src/maplibregl/overlay';

describe('MapExtend', () => {
describe('maplibregl MapExtend', () => {
var url = 'http://supermapiserver:8090/iserver/services/map-china400/rest/maps/China';
var testDiv, map;
beforeAll(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/maplibregl/overlay/L7LayerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { L7Layer } from '../../../src/maplibregl/overlay/L7Layer';

var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';

describe('L7Layer', () => {
describe('maplibregl L7Layer', () => {
var originalTimeout;
var testDiv, map, getL7Scene, setLayoutProperty;
var data = [
Expand Down

0 comments on commit 7bd6866

Please sign in to comment.