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);
registerMapAddon(zoomToRectangleAddon);
} else {
unregisterMapAddon(addons.get(panId));
unregisterMapAddon(addons.get(zoomId));
unregisterMapAddon(addons.get(zoomRectId));