Skip to content

Commit 5497fdd

Browse files
2 parents 3487cb9 + 6a326cc commit 5497fdd

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

test/openlayers/mapping/WebMapSpec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ describe('openlayers_WebMap', () => {
664664
successCallback: function () {},
665665
errorCallback: function () {}
666666
};
667-
let wmtsData = '<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://support.supermap.com:8090/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
668-
// let requestUrl = `${proxy}${encodeURIComponent('http://support.supermap.com:8090/iserver/services/map-world/wms130/World?MAP=World&&SERVICE=WMS&REQUEST=GetCapabilities')}`
667+
let wmtsData = '<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://localhost:9876/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
668+
// let requestUrl = `${proxy}${encodeURIComponent('http://localhost:9876/iserver/services/map-world/wms130/World?MAP=World&&SERVICE=WMS&REQUEST=GetCapabilities')}`
669669
spyOn(FetchRequest, 'get').and.callFake((url) => {
670670
if (url.indexOf('map.json') > -1) {
671671
var mapJson = datavizWebMap_WMS;
@@ -705,13 +705,13 @@ describe('openlayers_WebMap', () => {
705705
errorCallback: function () {},
706706
callback: function () {}
707707
};
708-
let wmtsData ='<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://support.supermap.com:8090/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
708+
let wmtsData ='<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://localhost:9876/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
709709
710710
spyOn(FetchRequest, 'get').and.callFake((url) => {
711711
if (url.indexOf('map.json')>-1) {
712712
var mapJson = datavizWebMap_WMTS;
713713
return Promise.resolve(new Response(mapJson));
714-
} else if(url === 'http://support.supermap.com:8090/iserver/services/maps/wmts100?') {
714+
} else if(url === 'http://localhost:9876/iserver/services/maps/wmts100?') {
715715
return Promise.resolve(new Response(wmtsData));
716716
}
717717
return Promise.resolve();
@@ -855,7 +855,7 @@ describe('openlayers_WebMap', () => {
855855
if (url.indexOf('map.json') > -1) {
856856
var mapJson = datavizWebMap_WMTS;
857857
return Promise.resolve(new Response(mapJson));
858-
} else if (url === "http://support.supermap.com:8090/iserver/services/maps/wmts100?") {
858+
} else if (url === "http://localhost:9876/iserver/services/maps/wmts100?") {
859859
return Promise.resolve(new Response(wmtsInfo2));
860860
}
861861
return Promise.resolve();
@@ -883,7 +883,7 @@ describe('openlayers_WebMap', () => {
883883
var mapJson = datavizWebMap_WMTS;
884884
return Promise.resolve(new Response(mapJson));
885885
} else {
886-
let wmtsData = '<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://support.supermap.com:8090/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
886+
let wmtsData = '<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://localhost:9876/iserver/services/map-world/wmts100/wmts,1.0,wmtsGetCapabilities_response.xsd"><<ows:OperationsMetadata><<ows:Operation name="GetCapabilities"></ows:Operation></ows:OperationsMetadata></Capabilities>';
887887
return Promise.resolve(new Response(wmtsData));
888888
}
889889
});
@@ -893,7 +893,7 @@ describe('openlayers_WebMap', () => {
893893
});
894894
setTimeout(() => {
895895
var layerInfo = {
896-
url: 'http://support.supermap.com:8090/iserver/services/maps/wmts100'
896+
url: 'http://localhost:9876/iserver/services/maps/wmts100'
897897
};
898898
var successCallback = function () {};
899899
datavizWebmap.getWmtsInfo(layerInfo, successCallback);

0 commit comments

Comments
 (0)