projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lat/lon vs. lon/lat issues
[gpl/argeo-suite.git]
/
js
/
src
/
geo
/
BboxVectorSource.js
diff --git
a/js/src/geo/BboxVectorSource.js
b/js/src/geo/BboxVectorSource.js
index f0721ff001ac3412abc765f051dca1288544fe1f..e1051b08394418a7b684b9fb36e349e1ab353ac2 100644
(file)
--- a/
js/src/geo/BboxVectorSource.js
+++ b/
js/src/geo/BboxVectorSource.js
@@
-1,7
+1,7
@@
import VectorSource from 'ol/source/Vector.js';
import { bbox } from 'ol/loadingstrategy';
import VectorSource from 'ol/source/Vector.js';
import { bbox } from 'ol/loadingstrategy';
-import { transformToLatLonExtent } from './OpenLayersUtils.js';
+import { transformTo
Epsg4326
LatLonExtent } from './OpenLayersUtils.js';
export default class BboxVectorSource extends VectorSource {
constructor(options) {
export default class BboxVectorSource extends VectorSource {
constructor(options) {
@@
-11,7
+11,7
@@
export default class BboxVectorSource extends VectorSource {
static processOptions(options) {
options.strategy = bbox;
options.url = function(extent, resolution, projection) {
static processOptions(options) {
options.strategy = bbox;
options.url = function(extent, resolution, projection) {
- var bbox = transformToLatLonExtent(extent, projection);
+ var bbox = transformTo
Epsg4326
LatLonExtent(extent, projection);
const baseUrl = options.baseUrl;
// invert bbox order in order to have minLat,minLon,maxLat,maxLon as required by WFS 2.0.0
const baseUrl = options.baseUrl;
// invert bbox order in order to have minLat,minLon,maxLat,maxLon as required by WFS 2.0.0