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

Bug

Classes cannot be extended in ArcGIS API for JavaScript 4.1.

Zuletzt veröffentlicht: July 31, 2017 ArcGIS for Server
Bug-ID-Nummer BUG-000100264
EingereichtOctober 21, 2016
Zuletzt geändertMarch 30, 2022
Gilt fürArcGIS for Server
Gefunden in Version10.2.2
Server-PlattformWindows OS
Client-Plattform7.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000100264

Software:

  • ArcGIS for Server

Hilfe von ArcGIS-Expert*innen erhalten

Technischen Support kontaktieren

Die Esri Support-App herunterladen

Zu den Download-Optionen

Weitere Informationen zu diesem Thema erkunden