Add public method to set layer opacity, directions and geocoder