resolves #2 on the frontend (map search)