wait for map initialization before handling directions