When map has max bounds, use those bounds for limiting search
fix #1264
This commit is contained in:
parent
fb6b0f4d9b
commit
311809520c
1 changed files with 1 additions and 0 deletions
|
@ -1272,6 +1272,7 @@ L.U.Search = L.PhotonSearch.extend({
|
|||
initialize: function (map, input, options) {
|
||||
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()
|
||||
},
|
||||
|
||||
onBlur: function (e) {
|
||||
|
|
Loading…
Reference in a new issue