makes directive for map to work even with ng-if for the modal

Signed-off-by: Levi Tan Ong <levi@byimplication.com>