Does anyone know of a way to clone an existing feature layer based on a REST URL, but convert it to a FeatureLayer that uses client-side graphics instead. For my purposes this is easier than setting definition expressions. But I want to use the same FeatureLayer settings (labels, popups, renderers, etc. etc.).
I'm using 4.11 version of the API.