The trick is to get drivers to follow those markings. Where I live I see cars/trucks regularly park on bike lanes with little repercussion. Add to that a hostility between drivers and cyclists sharing the road; this might just be an issue where I live (Toronto)
Cycling lane poles would be ideal, but a lot of drivers push back on this since they see it as precious space being taken away from them.