the declaredClass:"CustomGraphic" line that was added. Once this is in there, it works. This should be used in all extended classes. Doc will be updated to reflect this and hopefully alleviate any future confusion."/>
laptop and a wrench

Bogue

Classes cannot be extended in ArcGIS API for JavaScript 4.1.

Dernière publication: July 31, 2017 ArcGIS for Server
Numéro d’ID de bogue BUG-000100264
EnvoiOctober 21, 2016
Dernière modificationMarch 30, 2022
S’applique àArcGIS for Server
Version trouvée10.2.2
Plateforme serveurWindows OS
Plateforme client7.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

Problem is with how the custom class was created, it should read define(["esri/core/declare", "esri/Graphic"],function (declare, graphic) { return declare([graphic],{ declaredClass: "CustomGraphic" }); }); NOTE -> the declaredClass:"CustomGraphic" line that was added. Once this is in there, it works. This should be used in all extended classes. Doc will be updated to reflect this and hopefully alleviate any future confusion.

Étapes pour reproduire

ID de bogue: BUG-000100264

Logiciel:

  • ArcGIS for Server

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement

En savoir plus sur ce sujet