Skip to content

Commit 89c6c69

Browse files
committed
fixed(display): ensure [singleWorldView](https://heremaps.github.io/xyz-maps/docs/interfaces/display.mapoptions.html#singleworldview) is respected and prevent map repetition when resizing the map
Signed-off-by: Tim Deubler <tim.deubler@here.com>
1 parent 2647066 commit 89c6c69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/display/src/Map.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,8 @@ export class Map {
16511651
// make sure map is fully initialised
16521652
if (this._display) {
16531653
this._display.setSize(width, height);
1654+
// ensure `singleWorldView` is respected and prevent map repetition when resizing the map
1655+
this.setZoomlevel(this.getZoomlevel());
16541656
this.updateGrid();
16551657
this._l.trigger('resize', [new MapEvent('resize', {width: width, height: height})]);
16561658
}

0 commit comments

Comments
 (0)