// map view shared between large and small map modes
this.view = new MapView(mw);
this.view.setZoomLevel(zoomLevel);
// small map mode
this.smallMapMode = new SmallMapMode(this.mw.config);
this.smallMap = new MapRenderer(mw, this.smallMapMode, this.view);
// large map mode
this.largeMapMode = new LargeMapMode(this.mw.config);
this.largeMap = new MapRenderer(mw, this.largeMapMode, this.view);