Merge pull request #1268 from umap-project/search-bounds
When map has max bounds, use those bounds for limiting search
This commit is contained in:
commit
a997b5454b
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