"The planning agency shall serve in an advisory capacity to the chief administrative officer or the legislative body, or both, as may be provided by ordinance and shall have such other powers and duties as shall be provided by ordinance." . . . .