Allowed map overlays to include angular directives.

This was performed by wrapping a general overlay function in a service
than used the $compile function.