D.C. police linked a 19-year-old suspect to the scene of last week’s mass shooting on North Capitol Street through his court-ordered electronic ankle bracelet, according to documents made public Saturday.

The new details emerged at the arraignment in D.C. Superior Court for Craig Steven Wilson of Southeast Washington. A judge ordered the suspect, already under court supervision, detained until his next hearing, a date for which has not yet been set.

Wilson was arrested Friday and charged with assault with intent to kill in connection with the March 11 shooting that wounded 13 people outside an apartment tower off New York Avenue. One victim is in critical condition.

Documents detail what led detectives to Wilson but give no motive for the attack that occurred about 2:10 a.m. The spurt of gunfire and eerie surveillance camera images of the speeding cars, muzzle flashes and victims falling unnerved residents in the 1200 block of North Capitol Street NW and others in nearby NoMa, a fast-developing area that is attracting upscale shops and residents.

Police said they are searching for a second man, 19-year-old Andrew Allen, whom they describe as a “person of interest.” Allen has not been charged. Authorities said they now have both vehicles used in the shooting — two 1999 Mercedeses.

Craig Steven Wilson (Courtesy of D.C. Police)

The court documents say that one of the cars is registered to Wilson and that they were able to read the license plate number from security cameras.

The Global Positioning System ankle bracelet Wilson was wearing put him two blocks from the shooting scene about an hour before the incident. It then tracked Wilson as authorities say he circled the block on which Tyler House is located for more than an hour. Finally, the documents say it shows him speeding by Tyler House when the gunshots rang out.

The documents say shots were fired from the passenger windows of both vehicles. Police said the 9mm casings found along North Capitol Street are consistent with shots coming from the cars, while .40-caliber casings scattered on the sidewalk appear to have been from return fire.

Court records show Wilson was ordered to wear the GPS device after he was found guilty in December of violating his probation from a conviction of receiving stolen property.

Several people have been charged in the District in recent months with serious crimes allegedly committed while wearing GPS devices, including a man accused in a shooting spree that left one dead and two wounded in December, and a man charged with burglary and beating a blind elderly woman in Chevy Chase in November.

In 2012, the court released 1,351 defendants on GPS monitoring; officials said 110 were arrested and charged with new crimes, 11 of them involving violence, while they were being tracked.