From 5e19c936f0949d6a1e82ff122b661ba0b2512e8e Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 5 Dec 2017 14:36:12 -0500 Subject: [PATCH] Avoid deferred fetching of OSM tiles at low zooms or with layer disabled (closes #4572) --- modules/core/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/context.js b/modules/core/context.js index a3e618e46..ce0cf5787 100644 --- a/modules/core/context.js +++ b/modules/core/context.js @@ -129,7 +129,7 @@ export function coreContext() { if (!err) history.merge(result.data, result.extent); if (callback) callback(err, result); } - if (connection) { + if (connection && context.editable()) { cid = connection.getConnectionId(); connection.loadTiles(projection, dimensions, done); }