search input: add a placeholder to mention typing coordinates

This commit is contained in:
Yohan Boniface 2023-12-26 12:16:50 +01:00
parent 70ae3e4bd8
commit 9e346d2d4c

View file

@ -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()