commit 37417d1cf060febde4f09b03d03c09d4ce307ba6 parent ac34694cc446d4c4e66bbbe81ec4978644113739 Author: Sergej Orlov <wladimirych@gmail.com> Date: Thu, 6 Apr 2017 12:42:15 +0300 [jnx] fixes for null responses for google layer Diffstat:
M | src/lib/leaflet.control.jnx/jnx-maker.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.jnx/jnx-maker.js b/src/lib/leaflet.control.jnx/jnx-maker.js @@ -94,7 +94,7 @@ async function makeJnxFromLayer(srcLayer, layerName, maxZoomLevel, latLngBounds, break; } let xhr = imageRec.image; - if (xhr.status !== 200) { + if (xhr === null || xhr.status !== 200) { continue; } let image = await ensureImageJpg(xhr.response);