mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Fix url parser to work with lat/lng when checking for "best" imagery
(closes #3586)
This commit is contained in:
@@ -197,7 +197,7 @@ export function rendererBackground(context) {
|
||||
if (!qmap) return false;
|
||||
var args = qmap.split('/').map(Number);
|
||||
if (args.length < 3 || args.some(isNaN)) return false;
|
||||
return geoExtent([args[1], args[2]]);
|
||||
return geoExtent([args[2], args[1]]);
|
||||
}
|
||||
|
||||
var dataImagery = data.imagery || [],
|
||||
|
||||
Reference in New Issue
Block a user