From 707ee1c39efa6e49fa5b0869af79bb241c2e0216 Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Mon, 20 May 2019 14:33:54 +0100 Subject: Fixes issue with maxBounds. Closes #29. --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3