distance input in miles, pan and zoom issue resolved, pass_index js function removed