Skip to content

Commit c704409

Browse files
committed
【fix】sonar
1 parent 6eefe3e commit c704409

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/openlayers/core/MapExtend.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4-
import Map from 'ol/Map';
4+
import olMap from 'ol/Map';
55
import LayerGroup from 'ol/layer/Group';
66

77
/**
@@ -24,9 +24,9 @@ export var MapExtend = function () {
2424
}
2525
}
2626
}
27-
Map.prototype.forEachFeatureAtPixelDefault = Map.prototype.forEachFeatureAtPixel;
27+
olMap.prototype.forEachFeatureAtPixelDefault = olMap.prototype.forEachFeatureAtPixel;
2828

29-
Map.prototype.forEachFeatureAtPixel = Map.prototype.Tc = function (pixel, callback, opt_options, e) {
29+
olMap.prototype.forEachFeatureAtPixel = olMap.prototype.Tc = function (pixel, callback, opt_options, e) {
3030

3131
//如果满足高效率图层选取要求优先返回高效率图层选中结果
3232
const layerFilter = (opt_options && opt_options.layerFilter) ? opt_options.layerFilter : () => {

src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import SampleDataInfo from './webmap/config/SampleDataInfo.json';// eslint-disab
2727
import GeoJSON from 'ol/format/GeoJSON';
2828
import MVT from 'ol/format/MVT';
2929
import Observable from 'ol/Observable';
30-
import Map from 'ol/Map';
30+
import olMap from 'ol/Map';
3131
import View from 'ol/View';
3232
import * as olProj from 'ol/proj';
3333
import * as olProj4 from 'ol/proj/proj4';
@@ -216,7 +216,7 @@ export class WebMap extends Observable {
216216
overlays = mapSetting.overlays;
217217
controls = mapSetting.controls;
218218
}
219-
this.map = new Map({
219+
this.map = new olMap({
220220
interactions: interactions,
221221
overlays: overlays,
222222
controls: controls,

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