Flags in Edinburgh are flying at half mast in solidarity with its twin town Munich after nine people were killed by a gunman in the German city.
Edinburgh's Lord Provost Donald Wilson said: "On behalf of the citizens of Edinburgh, I offer our sincere condolences to the people of Munich and across Germany following yesterday's attack.
"Edinburgh has enjoyed a close relationship with Munich since becoming our very first twin city in 1954, so yesterday's events are particularly moving.
"Our thoughts are with the families of all those who have died and are injured."
"The flags flying above the Edinburgh City Chambers have been lowered to half mast as a mark of respect and support for all those affected."
Germany's Interior Minister Thomas de Maiziere has said it is too early to link the gunman who carried out the Munich shooting to Norway's mass killer Anders Breivik.
The 18-year-old gunman is said to have been obsessed with mass shootings and the attack took place on the fifth anniversary of Breivik's massacre of 77 people in 22 July 2011.
Mr de Maiziere said documents and internet data found to be related to the Munich shooter pointed to an interest in various shooting sprees,including that of Breivik.
German Chancellor Angela Merkel has said the country is "mourning with a heavy heart" after the Munich shooting attack.
"We are all - and I'm saying this on behalf of the whole federal government - mourning with a heavy heart for those who will never return to their families."
She added: "To the families, the parents and children for whom everything today seems empty and pointless, I say personally and in the name of many, many people in Germany: we share your pain, we're thinking of you and we're suffering with you."
Nine people were killed when an 18-year-old gunman opened fire at a shopping centre and fast-food restaurant on Friday.
Twenty-seven people have been injured, with ten in a critical condition.
Three Turkish nationals are among 10 people killed in a shooting attack in Munich on Friday, Turkey's foreign minister has said.
A gunman who killed nine people and at a Munich shopping centre was German-born and had no links with Islamic State, authorities say.Read the full story ›
The Munich shooter did not have a licence to own the gun, Bavaria's police chief said.
A Glock pistol was used in the attack, he added.
The shooter was in psychiatric and medical care, the Bavaria prosecutors' office spokesman said.
He had a book in his room about "rampage shooting in the mind", Bavaria's police chief said.
No suicide note has yet been found and his parents were unable to help police with the investigation due to shock, he added.
He was not known to police before the attack and had no criminal record.
Seven of the nine victims killed in Munich attack were teenagers, the police chief said.
The shooter had 300 bullets in his backpack, he added.
Four of the 27 injured have gunshot wounds.
Jeremy Corbyn has said he is "shocked" after the Munich shooting that left nine dead.
The Labour leader said: "Sympathy for the families and the bereaved and the people who have suffered a terrible shock because to see somebody shot in front of you is probably an image that will never go away."
Russian President Vladimir Putin has sent his condolences to German Chancellor Angela Merkel after Friday's deadly shooting in Munich, Russian news agencies have reported, citing the Kremlin.
Nine people were killed when gunman, who is believed an 18-year-old German-Iranian, opened fire near a busy shopping mall.
It was the third attack on civilians in western Europe in eight days.