Rename extent
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Map from '../src/ol/Map.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import * as _ol_extent_ from '../src/ol/extent.js';
|
||||
import {getCenter} from '../src/ol/extent.js';
|
||||
import ImageLayer from '../src/ol/layer/Image.js';
|
||||
import Projection from '../src/ol/proj/Projection.js';
|
||||
import Static from '../src/ol/source/ImageStatic.js';
|
||||
@@ -30,7 +30,7 @@ const map = new Map({
|
||||
target: 'map',
|
||||
view: new View({
|
||||
projection: projection,
|
||||
center: _ol_extent_.getCenter(extent),
|
||||
center: getCenter(extent),
|
||||
zoom: 2,
|
||||
maxZoom: 8
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user