Where the zoning and planning provisions of a city or town require landscaping, parking, or other improvements as a condition to granting permits for commercial or industrial developments, the city or town may credit donations of right-of-way in excess of that required for traffic improvement against such landscaping, parking, or other requirements.