search input: add a placeholder to mention typing coordinates
This commit is contained in:
parent
70ae3e4bd8
commit
9e346d2d4c
1 changed files with 1 additions and 0 deletions
|
@ -1353,6 +1353,7 @@ L.U.StarControl = L.Control.extend({
|
||||||
|
|
||||||
L.U.Search = L.PhotonSearch.extend({
|
L.U.Search = L.PhotonSearch.extend({
|
||||||
initialize: function (map, input, options) {
|
initialize: function (map, input, options) {
|
||||||
|
this.options.placeholder = L._('Type a place name or coordinates')
|
||||||
L.PhotonSearch.prototype.initialize.call(this, map, input, options)
|
L.PhotonSearch.prototype.initialize.call(this, map, input, options)
|
||||||
this.options.url = map.options.urls.search
|
this.options.url = map.options.urls.search
|
||||||
if (map.options.maxBounds) this.options.bbox = map.options.maxBounds.toBBoxString()
|
if (map.options.maxBounds) this.options.bbox = map.options.maxBounds.toBBoxString()
|
||||||
|
|
Loading…
Reference in a new issue