PanButtonCollection panButtons = new PanButtonCollection(panId, this);
panButtons.setHorizontalMargin(5);
panButtons.setVerticalMargin(5);
registerMapAddon(panButtons);
ZoomAddon zoomAddon = new ZoomAddon(zoomId, this);
zoomAddon.setHorizontalMargin(20);
zoomAddon.setVerticalMargin(65);
registerMapAddon(zoomAddon);
ZoomToRectangleAddon zoomToRectangleAddon = new ZoomToRectangleAddon(zoomRectId, this);
zoomToRectangleAddon.setHorizontalMargin(20);
zoomToRectangleAddon.setVerticalMargin(135);