Method for setting buffer size for map