A municipality may, by ordinance, regulate the planting, transplanting, growing, trimming, pruning, preservation and protection of trees, shrubs and vines or create a commission for the purpose of such regulation.