operationalLayers: [{ type: "feature", url: "http://xyz.com/arcgis/rest/services/xyz/xyz/0", options: { id: "Cable", title: "Cable", opacity: 1.0, visible: true, infoTemplate: new esri.InfoTemplate("Attributes", "${*}"), mode: esri.layers.FeatureLayer.MODE_SNAPSHOT }}]
infoTemplate: new esri.InfoTemplate("Attributes", "${*}"),
Someone put one together herehttps://github.com/DavidSpriggs/ConfigurableViewerJSAPIAnd this onehttps://github.com/agrc/AGRCJavaScriptProjectBoilerPlateI've only browsed them, but they're pretty good starting points.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.