Wrap all map functinality in a boolean check for the gmaps API