Skip to content

Commit cf7f661

Browse files
[fix]sonar review by qiw
1 parent 81c24af commit cf7f661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openlayers/mapping/InitMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MapService } from '../services/MapService';
2-
import Map from 'ol/Map';
2+
import olMap from 'ol/Map';
33
import View from 'ol/View';
44
import Tile from 'ol/layer/Tile';
55
import { TileSuperMapRest } from './TileSuperMapRest';
@@ -89,7 +89,7 @@ export function viewOptionsFromMapJSON(mapJSONObj, level = 22) {
8989

9090
function createMap(result, mapOptions, viewOptions) {
9191
let view = viewOptionsFromMapJSON(result);
92-
var map = new Map({
92+
var map = new olMap({
9393
target: 'map',
9494
view: new View({ ...view, ...viewOptions }),
9595
...mapOptions

0 commit comments

Comments
 (0)