Skip to content

Commit 68ba759

Browse files
committed
【bug】1) webmap解决dv分享,restdata的mvt选不中线和面的问题
2)webmap在itest上请求数据服务失败
1 parent 8951d5d commit 68ba759

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,6 @@ export class WebMap extends ol.Observable {
16861686
let style = StyleUtils.toOpenLayersStyle(this.getDataVectorTileStyle(featureType), featureType);
16871687
return new ol.layer.VectorTile({
16881688
//设置避让参数
1689-
declutter: true,
16901689
source: new ol.source.VectorTileSuperMapRest({
16911690
url: layerInfo.url,
16921691
projection: layerInfo.projection,
@@ -2788,7 +2787,7 @@ export class WebMap extends ol.Observable {
27882787
* @returns {Promise<T | never>} 数据源名称
27892788
*/
27902789
getDatasources(url) {
2791-
return FetchRequest.get(`${url}/data/datasources.json`).then(function (response) {
2790+
return FetchRequest.get(`${this.getProxy()}${url}/data/datasources.json`).then(function (response) {
27922791
return response.json()
27932792
}).then(function (datasource) {
27942793
let datasourceNames = datasource.datasourceNames;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy