So we use `templateUrl` and `replace`, and we finally move the element to another location (the map's overlay container). That sounds weird to me. (If I understand correctly, we even leave useless elements behind us – not sure about this one.) I'd need to think through it, but there may be a better way, possibly based on `transclude` and the transclusion function.