From 9e346d2d4c4ecf870a8bbcc1187fae9e11c499da Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 26 Dec 2023 12:16:50 +0100 Subject: [PATCH] search input: add a placeholder to mention typing coordinates --- umap/static/umap/js/umap.controls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index ee76e440..217b842b 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1353,6 +1353,7 @@ L.U.StarControl = L.Control.extend({ L.U.Search = L.PhotonSearch.extend({ initialize: function (map, input, options) { + this.options.placeholder = L._('Type a place name or coordinates') L.PhotonSearch.prototype.initialize.call(this, map, input, options) this.options.url = map.options.urls.search if (map.options.maxBounds) this.options.bbox = map.options.maxBounds.toBBoxString()