Pass nearest parameter to the map