pass map instead of coords