Skip to content

Commit

Permalink
Avoid deferred fetching of OSM tiles at low zooms or with layer disabled
Browse files Browse the repository at this point in the history
(closes #4572)
  • Loading branch information
bhousel committed Dec 5, 2017
1 parent 4140535 commit 5e19c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5e19c93

Please sign in to comment.