generates .map from linestrings