Better implementation of GoogleMap directive