Avoid deferred fetching of OSM tiles at low zooms or with layer disabled

(closes #4572)
This commit is contained in:
Bryan Housel
2017-12-05 14:36:12 -05:00
parent 4140535470
commit 5e19c936f0
+1 -1
View File
@@ -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);
}