*/
import { fromLonLat, getPointResolution } from 'ol/proj.js';
-import { transformExtent } from 'ol/proj.js';
import TileLayer from 'ol/layer/Tile.js';
import * as SLDReader from '@nieuwlandgeo/sldreader';
import MapPart from './MapPart.js';
+import { transformToOlLonLatExtent } from './OpenLayersUtils.js';
/** OpenLayers implementation of MapPart. */
export default class OpenLayersMapPart extends MapPart {
}
fit(extent, options) {
- var transformed = transformExtent(extent, 'EPSG:4326', this.#map.getView().getProjection());
+ var transformed = transformToOlLonLatExtent(extent, this.#map.getView().getProjection());
this.#map.getView().fit(transformed, options);
}