}
if (request.getMapDeltaX() != null || request.getMapDeltaY() != null ||
request.getMapZoom() != null || request.getWidthChanged() != null) {
FlexMap map = new FlexMap();
MapBean mapBean = clientBean.getMapBean();
if (request.getWidthChanged() != null) {
mapBean.setWidth(request.getWidthChanged());
}
if (request.getMapDeltaX() != null || request.getMapDeltaY() != null) {
int mapDeltaX = request.getMapDeltaX() == null ? 0 : request.getMapDeltaX();
int mapDeltaY = request.getMapDeltaY() == null ? 0 : request.getMapDeltaY();
mapBean.move(mapDeltaX, mapDeltaY);
}
if (request.getMapZoom() != null) {
mapBean.zoom(request.getMapZoom());
}
map.setObjectsTitles(mapBean.getObjectTitles());
map.setObjectsAreas(mapBean.getObjectsToIntArray());
response.setMap(map);
}
return response;
}