Skip to content

Commit

Permalink
Revert "【fix】ISVJ-7398 修复带有token的restmap和叠加的数据401问题"
Browse files Browse the repository at this point in the history
This reverts commit 204b688.
  • Loading branch information
chenxianhuii committed Dec 28, 2023
1 parent 204b688 commit 0f3790f
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 102 deletions.
23 changes: 0 additions & 23 deletions test/openlayers/mapping/WebMapSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1579,27 +1579,4 @@ describe('openlayers_WebMap', () => {
done();
}
});

it('createBaseLayer-SUPERMAP_REST-token', (done) => {
spyOn(FetchRequest, 'get').and.callFake((url, params, options) => {
if (url.indexOf('map.json') > -1) {
var mapJson = datavizWebMap_RestMap_token;
return Promise.resolve(new Response(mapJson));
} else if (url.indexOf('content.json') > -1) {
expect(url.indexOf('testtoken')).toBe(-1);
return Promise.resolve(new Response(geojsonData));
} else {
expect(url.indexOf('testtoken')).not.toBe(-1);
return Promise.resolve()
}
});
var datavizWebmap = new WebMap(id, {successCallback, errorCallback, server: defaultServer });
function successCallback(map, mapInfo, layers, baseLayer){
expect(baseLayer.credential).toEqual({token: 'testtoken'});
done();
}
function errorCallback(error) {
console.log(error);
}
});
});
2 changes: 0 additions & 2 deletions test/resources/WebMapV5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

154 changes: 77 additions & 77 deletions test/test-main-openlayers.js
Original file line number Diff line number Diff line change
@@ -1,85 +1,85 @@
// /*openlayers -- control*/
// import './openlayers/control/ChangeTileVersionSpec.js';
// import './openlayers/control/ScaleLineSpec';
/*openlayers -- control*/
import './openlayers/control/ChangeTileVersionSpec.js';
import './openlayers/control/ScaleLineSpec';

// /*openlayers -- core*/
// import './openlayers/core/StyleUtilsSpec.js';
// import './openlayers/core/UtilSpec.js';
// import './openlayers/core/MapExtendSpec.js';
/*openlayers -- core*/
import './openlayers/core/StyleUtilsSpec.js';
import './openlayers/core/UtilSpec.js';
import './openlayers/core/MapExtendSpec.js';

// // /*openlayers -- mapping*/
// import './openlayers/mapping/ImageSuperMapRestSpec.js';
// import './openlayers/mapping/TileSuperMapRestSpec.js';
// /*openlayers -- mapping*/
import './openlayers/mapping/ImageSuperMapRestSpec.js';
import './openlayers/mapping/TileSuperMapRestSpec.js';
import './openlayers/mapping/WebMapSpec.js';
// import './openlayers/mapping/ImageTileSuperMapRestSpec.js';
// import './openlayers/mapping/initMapSpec.js';
import './openlayers/mapping/ImageTileSuperMapRestSpec.js';
import './openlayers/mapping/initMapSpec.js';

// /*openlayers -- overlay*/
// import './openlayers/overlay/DataFlowSpec.js';
// import './openlayers/overlay/graphic/GraphicSpec.js';
// import './openlayers/overlay/GraphicSpec.js';
// import './openlayers/overlay/graphic/CanvasRendererSpec';
/*openlayers -- overlay*/
import './openlayers/overlay/DataFlowSpec.js';
import './openlayers/overlay/graphic/GraphicSpec.js';
import './openlayers/overlay/GraphicSpec.js';
import './openlayers/overlay/graphic/CanvasRendererSpec';

// import './openlayers/overlay/GraphSpec.js';
// import './openlayers/overlay/HeatMapSpec.js';
// import './openlayers/overlay/LabelSpec.js';
// import './openlayers/overlay/MapvSpec.js';
// import './openlayers/overlay/RangeSpec.js';
// import './openlayers/overlay/RankSymbolSpec.js';
// import './openlayers/overlay/UniqueSpec.js';
// import './openlayers/overlay/VectorTileSuperMapRestMapboxstyleSpec.js';
// import './openlayers/overlay/VectorTileSuperMapRestSpec.js';
// import './openlayers/overlay/theme/GeoFeatureSpec.js';
// import './openlayers/overlay/theme/ThemeFeatureSpec.js';
// import './openlayers/overlay/theme/ThemeSpec.js';
// import './openlayers/overlay/vectortile/VectorTileStylesSpec.js';
// import './openlayers/overlay/vectortile/MapboxStylesSpec.js';
// import './openlayers/overlay/TurfSpec.js';
// import './openlayers/overlay/FGBSpec.js';
// import './openlayers/overlay/GraphMapSpec';
import './openlayers/overlay/GraphSpec.js';
import './openlayers/overlay/HeatMapSpec.js';
import './openlayers/overlay/LabelSpec.js';
import './openlayers/overlay/MapvSpec.js';
import './openlayers/overlay/RangeSpec.js';
import './openlayers/overlay/RankSymbolSpec.js';
import './openlayers/overlay/UniqueSpec.js';
import './openlayers/overlay/VectorTileSuperMapRestMapboxstyleSpec.js';
import './openlayers/overlay/VectorTileSuperMapRestSpec.js';
import './openlayers/overlay/theme/GeoFeatureSpec.js';
import './openlayers/overlay/theme/ThemeFeatureSpec.js';
import './openlayers/overlay/theme/ThemeSpec.js';
import './openlayers/overlay/vectortile/VectorTileStylesSpec.js';
import './openlayers/overlay/vectortile/MapboxStylesSpec.js';
import './openlayers/overlay/TurfSpec.js';
import './openlayers/overlay/FGBSpec.js';
import './openlayers/overlay/GraphMapSpec';

// // /**openlayers --services**/
// import './openlayers/services/BufferAnalysisSpec.js';
// import './openlayers/services/DensityAnalysisSpec.js';
// import './openlayers/services/EditFeaturesSpec.js';
// import './openlayers/services/FieldServiceSpec.js';
// import './openlayers/services/GenerateSpatialDataSpec.js';
// import './openlayers/services/GeoRelationAnalysisSpec.js';
// import './openlayers/services/GeometryBatchAnalysisSpec.js';
// import './openlayers/services/GetFeaturesByBoundsSpec.js';
// import './openlayers/services/GetFeaturesByBufferSpec.js';
// import './openlayers/services/GetFeaturesByGeometrySpec.js';
// import './openlayers/services/GetFeaturesByIDsSpec.js';
// import './openlayers/services/GetFeaturesBySQLSpec.js';
// import './openlayers/services/GeoprocessingServiceSpec.js';
// /**openlayers --services**/
import './openlayers/services/BufferAnalysisSpec.js';
import './openlayers/services/DensityAnalysisSpec.js';
import './openlayers/services/EditFeaturesSpec.js';
import './openlayers/services/FieldServiceSpec.js';
import './openlayers/services/GenerateSpatialDataSpec.js';
import './openlayers/services/GeoRelationAnalysisSpec.js';
import './openlayers/services/GeometryBatchAnalysisSpec.js';
import './openlayers/services/GetFeaturesByBoundsSpec.js';
import './openlayers/services/GetFeaturesByBufferSpec.js';
import './openlayers/services/GetFeaturesByGeometrySpec.js';
import './openlayers/services/GetFeaturesByIDsSpec.js';
import './openlayers/services/GetFeaturesBySQLSpec.js';
import './openlayers/services/GeoprocessingServiceSpec.js';

// import './openlayers/services/InterpolationAnalysisSpec.js';
// import './openlayers/services/LayerInfoServiceSpec.js';
// import './openlayers/services/MathExpressionAnalysisSpec.js';
// import './openlayers/services/MeasureServiceSpec.js';
// import './openlayers/services/NetworkAnalystServiceSpec.js';
// import './openlayers/services/OverlayAnalysisSpec.js';
// import './openlayers/services/ProcessingServiceSpec.js';
// import './openlayers/services/QueryServiceSpec.js';
// import './openlayers/services/RouteCalculateMeasureSpec.js';
// import './openlayers/services/RouteLocateSpec.js';
// import './openlayers/services/SurfaceAnalysisSpec.js';
// import './openlayers/services/TerrainCurvatureCalculateSpec.js';
// import './openlayers/services/TerrainAspectCalculateSpec.js';
// import './openlayers/services/TerrainSlopeCalculateSpec.js';
// import './openlayers/services/TerrainCutFillCalculateSpec.js';
// import './openlayers/services/MinDistanceAnalysisSpec.js';
// import './openlayers/services/ConvexHullAnalysisSpec.js';
// import './openlayers/services/ThemeServiceSpec.js';
// import './openlayers/services/ThiessenAnalysisSpec.js';
// import './openlayers/services/TrafficTransferAnalystServiceSpec.js';
// import './openlayers/services/AddressMatchServiceSpec.js';
// import './openlayers/services/GridCellInfosServiceSpec.js';
// import './openlayers/services/WebPrintingJobServiceSpec.js';
// import './openlayers/services/DatasetServiceSpec.js';
// import './openlayers/services/DatasourceServiceSpec.js';
// import './openlayers/services/ImageServiceSpec';
// import './openlayers/services/ImageCollectionServiceSpec';
// import './openlayers/services/KnowledgeGraphServiceSpec.js';
// import './openlayers/services/ChartServiceSpec.js';
import './openlayers/services/InterpolationAnalysisSpec.js';
import './openlayers/services/LayerInfoServiceSpec.js';
import './openlayers/services/MathExpressionAnalysisSpec.js';
import './openlayers/services/MeasureServiceSpec.js';
import './openlayers/services/NetworkAnalystServiceSpec.js';
import './openlayers/services/OverlayAnalysisSpec.js';
import './openlayers/services/ProcessingServiceSpec.js';
import './openlayers/services/QueryServiceSpec.js';
import './openlayers/services/RouteCalculateMeasureSpec.js';
import './openlayers/services/RouteLocateSpec.js';
import './openlayers/services/SurfaceAnalysisSpec.js';
import './openlayers/services/TerrainCurvatureCalculateSpec.js';
import './openlayers/services/TerrainAspectCalculateSpec.js';
import './openlayers/services/TerrainSlopeCalculateSpec.js';
import './openlayers/services/TerrainCutFillCalculateSpec.js';
import './openlayers/services/MinDistanceAnalysisSpec.js';
import './openlayers/services/ConvexHullAnalysisSpec.js';
import './openlayers/services/ThemeServiceSpec.js';
import './openlayers/services/ThiessenAnalysisSpec.js';
import './openlayers/services/TrafficTransferAnalystServiceSpec.js';
import './openlayers/services/AddressMatchServiceSpec.js';
import './openlayers/services/GridCellInfosServiceSpec.js';
import './openlayers/services/WebPrintingJobServiceSpec.js';
import './openlayers/services/DatasetServiceSpec.js';
import './openlayers/services/DatasourceServiceSpec.js';
import './openlayers/services/ImageServiceSpec';
import './openlayers/services/ImageCollectionServiceSpec';
import './openlayers/services/KnowledgeGraphServiceSpec.js';
import './openlayers/services/ChartServiceSpec.js';

0 comments on commit 0f3790f

Please sign in to comment.