more code cleanup

remove marking styles from openlayers
rearrange work in loop for slight optimization
remove unneeded constants