Add example to custom url template prompt

(closes #3887)
This commit is contained in:
Bryan Housel
2017-06-20 00:38:49 -04:00
parent 684de28998
commit eff9aaeceb
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -111,7 +111,8 @@ export function uiBackground(context) {
function editCustom() {
d3.event.preventDefault();
var template = window.prompt(t('background.custom_prompt'), customTemplate);
var example = 'https://{switch:a,b,c}.tiles.mapbox.com/v4/examples.map-4l7djmvo/{zoom}/{x}/{y}.png';
var template = window.prompt(t('background.custom_prompt', { example: example }), customTemplate);
if (template) {
setCustom(template);
} else {