Regarding lateral placement of shared lane markings, this is what the US Manual on Uniform Traffic Control Devices (MUTCD)
has to say on the subject:
Guidance:
04 If used in a shared lane with on-street parallel parking, Shared Lane Markings should be placed so that the centers of the markings are at least 11 feet from the face of the curb, or from the edge of the pavement where there is no curb.
05 If used on a street without on-street parking that has an outside travel lane that is less than 14 feet wide, the centers of the Shared Lane Markings should be at least 4 feet from the face of the curb, or from the edge of the pavement where there is no curb.
(Disclosure: I served as chair of the NCUTCD Bicycle Technical Committee from 2002-2017, and am currently under contract to NCUTCD for organizational management services.)