Add support for LineStrings to map handling.

Also refactor a bit to reduce duplication.
Change some colors.
Start using properties for generic configuration of layers.