(1) Cities of the second class or villages may remove all obstructions from sidewalks, curbstones, gutters, and crosswalks at the expense of the person placing them there or at the expense of the city or village and require and regulate the planting and protection of shade trees in and along the streets and the trimming and removing of such trees.
(2) Cities of the second class or villages may by ordinance declare it to be a nuisance for a property owner to permit, allow, or maintain any dead or diseased trees within the right-of-way of streets within the corporate limits or within the extraterritorial zoning jurisdiction of the city or village. Notice to abate and remove such nuisance and notice of the right to a hearing and the manner in which it may be requested shall be given to each owner or owner's duly authorized agent and to the occupant, if any. The city or village shall establish the method of notice by ordinance. If notice is given by first-class mail, such mail shall be conspicuously marked as to its importance. Within five days after receipt of such notice, the owner or occupant of the lot or piece of ground may request a hearing with the city or village to appeal the decision to abate or remove the nuisance by filing a written appeal with the office of the city clerk or village clerk. A hearing on the appeal shall be held within fourteen days after the filing of the appeal and shall be conducted by an elected or appointed officer as designated in the ordinance. The hearing officer shall render a decision on the appeal within five business days after the conclusion of the hearing. If the appeal fails, the city or village may have the work done to abate and remove the dead or diseased trees. If the owner or occupant of the lot or piece of ground does not request a hearing with the city or village within five days after receipt of such notice or fails to comply with the order to abate and remove the nuisance, the city or village may have such work done. The city or village may levy and assess all or any portion of the costs and expenses of the work upon the lot or piece of ground so benefited as a special assessment.
(3) Cities of the second class or villages may regulate the building of bulkheads, cellar and basement ways, stairways, railways, windows, doorways, awnings, lampposts, awning posts, all other structures projecting upon or over and adjoining, and all other excavations through and under the sidewalks in the city or village.