mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
@@ -211,6 +211,7 @@ en:
|
||||
title: Background
|
||||
description: Background settings
|
||||
percent_brightness: "{opacity}% brightness"
|
||||
none: None
|
||||
custom: Custom
|
||||
custom_prompt: "Enter a tile template. Valid tokens are {z}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme."
|
||||
fix_misalignment: Fix misalignment
|
||||
|
||||
1
dist/locales/en.json
vendored
1
dist/locales/en.json
vendored
@@ -260,6 +260,7 @@
|
||||
"title": "Background",
|
||||
"description": "Background settings",
|
||||
"percent_brightness": "{opacity}% brightness",
|
||||
"none": "None",
|
||||
"custom": "Custom",
|
||||
"custom_prompt": "Enter a tile template. Valid tokens are {z}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme.",
|
||||
"fix_misalignment": "Fix misalignment",
|
||||
|
||||
@@ -14,6 +14,8 @@ iD.Background = function(context) {
|
||||
}
|
||||
});
|
||||
|
||||
backgroundSources.unshift(iD.BackgroundSource.None());
|
||||
|
||||
function findSource(id) {
|
||||
return _.find(backgroundSources, function(d) {
|
||||
return d.id && d.id === id;
|
||||
|
||||
@@ -112,3 +112,7 @@ iD.BackgroundSource.Bing = function(data, dispatch) {
|
||||
|
||||
return bing;
|
||||
};
|
||||
|
||||
iD.BackgroundSource.None = function() {
|
||||
return iD.BackgroundSource({ name: t('background.none'), id: 'None', template: '' });
|
||||
};
|
||||
|
||||
@@ -68,6 +68,7 @@ iD.TileLayer = function() {
|
||||
if (source.validZoom(z)) {
|
||||
tile().forEach(function(d) {
|
||||
addSource(d);
|
||||
if (d[3] === '') return;
|
||||
requests.push(d);
|
||||
if (cache[d[3]] === false && lookUp(d)) {
|
||||
requests.push(addSource(lookUp(d)));
|
||||
|
||||
Reference in New Issue
Block a user