Store return value from wrapLatLngBounds (#5715)

Fixes #5536.
This commit is contained in:
Per Liedman 2017-08-28 10:40:47 +02:00 committed by Vladimir Agafonkin
parent 14a2e94c9d
commit a5e03adb45

View File

@ -745,7 +745,7 @@ export var GridLayer = Layer.extend({
bounds = new LatLngBounds(nw, se); bounds = new LatLngBounds(nw, se);
if (!this.options.noWrap) { if (!this.options.noWrap) {
map.wrapLatLngBounds(bounds); bounds = map.wrapLatLngBounds(bounds);
} }
return bounds; return bounds;