Thousands gathered Tuesday for the funeral of slain New York City police officer Miosotis Familia, who was posthumously promoted to detective, first grade.

Mourners paid their respects at the World Changers Church in Fordham Heights.

A sea of fellow officers from the NYPD as well as those from departments across the state and country filled the sidewalk and street outside the former Grand Concourse movie house.

During his remarks, Police Commissioner James O'Neill says Familia was dedicated to the shield and protecting all New Yorkers.

"We tell our police you're the counselor, you're the parent you're the social worker, you're the referee. But policing was never intended to solve all those problems. It's our obligation to continually drive down crime and keep people safe. That's what Miosotos vowed to do. And that's the work we leave out to continue in her stead," O'Neill said. 

Many of those in attendance did not know Officer Familia personally, but felt strongly about honoring her memory.

"This is a family funeral. Cops across the nation and across the world, we're all one family. And when one officer dies we have to show up to support not only the department but for that officers family," said Lieutenant Ronald Banta of the San Francisco Police Department.

"This act of madness was not only against her and the NYPD but against all of us. And it’s time we start sending the message that we collectively are not going to accept this behavior," said Bronx Borough President Ruben Diaz, Jr.

Familia was shot in the head last week when a gunman fired through the window of her mobile command unit.

He was then shot and killed by police.

Familia was a 12-year veteran of the force and a mother of three.