It's illegal to smoke even tobacco in parks in some places, so this isn't too surprising. This might be a local ordinance and not a statewide law though.