Attempting to pass map model to save marker function