The city council of any city of the first class or city of the second class or the board of trustees of any village shall have power to compel the owner of any real property described in section 19-918 in subdividing, platting, or laying out the same to conform to the requirements of the ordinance and to lay out and dedicate the avenues, streets, and alleys in accordance therewith.