Skip to content

Commit 86e0299

Browse files
[fix]sonar review by qiw
1 parent 1567675 commit 86e0299

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)
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