custom input type for map