marker creation/style changing moved out of rendering code (to allow use from elsewhere, and possible overriding by plugins)