Rename extent

This commit is contained in:
Nicholas L
2018-02-19 20:33:03 +13:00
parent 4e0eaae9da
commit 7097b530f3
27 changed files with 80 additions and 80 deletions
+2 -2
View File
@@ -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 {getWidth} from '../src/ol/extent.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
@@ -26,7 +26,7 @@ const labelStyle = new Style({
let widest = 0;
for (let i = 0, ii = polygons.length; i < ii; ++i) {
const polygon = polygons[i];
const width = _ol_extent_.getWidth(polygon.getExtent());
const width = getWidth(polygon.getExtent());
if (width > widest) {
widest = width;
geometry = polygon;