aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/main.js
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2019-05-20 14:33:54 +0100
committerJakub Hampl <kopomir@gmail.com>2019-05-20 14:33:54 +0100
commit707ee1c39efa6e49fa5b0869af79bb241c2e0216 (patch)
treefbc109c90b753d3a71fa29af208c93a3c57ce11a /src/js/main.js
parentafd9cf8993b31d747d3dd3bdb3581af9c576de6b (diff)
Fixes issue with maxBounds.
Closes #29.
Diffstat (limited to 'src/js/main.js')
-rw-r--r--src/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/main.js b/src/js/main.js
index 7699bb3..3cd60ca 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -56,7 +56,7 @@ export function registerCustomElement(settings) {
return this._maxBounds;
}
set maxBounds(value) {
- if (this._map) this._map.setBounds(value);
+ if (this._map) this._map.setMaxBounds(value);
this._maxBounds = value;
}