// Detail map with default mouse and keyboard interactions
mapDetail = new UnfoldingMap(this, "detail", 10, 10, 585, 580);
mapDetail.zoomToLevel(4);
mapDetail.setZoomRange(4, 10);
mapDetail.setTweening(true);
EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, mapDetail);
// Overview map listens to interaction events from the detail map
mapOverview = new UnfoldingMap(this, "overview", 605, 10, 185, 185);
mapOverview.zoomToLevel(1);
mapOverview.setZoomRange(1, 7);
mapOverview.setTweening(true);
eventDispatcher.register(mapOverview, "pan", mapDetail.getId());
eventDispatcher.register(mapOverview, "zoom", mapDetail.getId());
// Static overview map
mapOverviewStatic = new UnfoldingMap(this, "overviewStatic", 605, 205, 185, 185);
}