From bf7b30ace97aa017f5700b4949e2bb4c0d56f22f Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 8 Jun 2020 13:19:46 -0400 Subject: [PATCH] Fix unreleased regression where OSM notes were being parsed as JSON and thus not loading (re: #7188) --- modules/services/osm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/services/osm.js b/modules/services/osm.js index 295627220..c5c81461d 100644 --- a/modules/services/osm.js +++ b/modules/services/osm.js @@ -597,7 +597,11 @@ export default { if (err) { return callback(err); } else { - return parseJSON(payload, callback, options); + if (path.indexOf('.json') !== -1) { + return parseJSON(payload, callback, options); + } else { + return parseXML(payload, callback, options); + } } } }