Whenever a city or county imposes as a condition to its approval of a tentative map or a parcel map a requirement that necessitates replacing, undergrounding, or permanently or temporarily relocating existing facilities of a telephone corporation or cable television system, the developer or subdivider shall reimburse the telephone corporation or cable television system for all costs for the replacement, undergrounding, or relocation. All these costs shall be billed after they are incurred, and shall include a credit for any required advance payments and for the salvage value of any facilities replaced. In no event shall the telephone corporation or cable television system be reimbursed for costs incurred in excess of the cost to replace the facilities with substantially similar facilities.