OverviewPlusDetailConnection connection;
public void setup() {
size(800, 600, OPENGL);
mapOverview = new UnfoldingMap(this, "overview", 10, 10, 585, 580);
mapOverview.zoomToLevel(1);
mapOverview.setZoomRange(1, 7);
MapUtils.createDefaultEventDispatcher(this, mapOverview);
mapDetail = new UnfoldingMap(this, "detail", 605, 10, 150, 150);
mapDetail.setTweening(false);
mapDetail.zoomToLevel(4);
mapDetail.setZoomRange(4, 10);
connection = new ConvexHullConnection(this);