From 9a794ccdfee4c485e5b2f8c76e4675a54c1f129f Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:37:06 +0100 Subject: [PATCH] Use preferred tile.osm.org URL in examples (#9979) --- API.md | 2 +- modules/ui/settings/custom_background.js | 2 +- modules/ui/settings/custom_data.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index 723b9aaa1..2646035ff 100644 --- a/API.md +++ b/API.md @@ -14,7 +14,7 @@ of iD (e.g. `https://ideditor-release.netlify.app`), the following parameters ar where the URL can contain the standard tile URL placeholders `{x}`, `{y}` and `{z}`/`{zoom}`, `{ty}` for flipped TMS-style Y coordinates, and `{switch:a,b,c}` for DNS multiplexing.
- _Example:_ `background=custom:https://{switch:a,b,c}.tile.openstreetmap.org/{zoom}/{x}/{y}.png` + _Example:_ `background=custom:https://tile.openstreetmap.org/{zoom}/{x}/{y}.png` * __`comment`__ - Prefills the changeset comment. Pass a url encoded string.
_Example:_ `comment=CAR%20crisis%2C%20refugee%20areas%20in%20Cameroon` * __`disable_features`__ - Disables features in the list.
diff --git a/modules/ui/settings/custom_background.js b/modules/ui/settings/custom_background.js index 694ac7427..7d7e0c917 100644 --- a/modules/ui/settings/custom_background.js +++ b/modules/ui/settings/custom_background.js @@ -19,7 +19,7 @@ export function uiSettingsCustomBackground() { template: prefs('background-custom-template') }; - var example = 'https://{switch:a,b,c}.tile.openstreetmap.org/{zoom}/{x}/{y}.png'; + var example = 'https://tile.openstreetmap.org/{zoom}/{x}/{y}.png'; var modal = uiConfirm(selection).okButton(); modal diff --git a/modules/ui/settings/custom_data.js b/modules/ui/settings/custom_data.js index 2ad991fc4..8c1e0b9ae 100644 --- a/modules/ui/settings/custom_data.js +++ b/modules/ui/settings/custom_data.js @@ -22,7 +22,7 @@ export function uiSettingsCustomData(context) { // url: prefs('settings-custom-data-url') }; - // var example = 'https://{switch:a,b,c}.tile.openstreetmap.org/{zoom}/{x}/{y}.png'; + // var example = 'https://tile.openstreetmap.org/{zoom}/{x}/{y}.png'; var modal = uiConfirm(selection).okButton(); modal