<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic' in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046354#M72479</link>
    <description>&lt;P&gt;You import the class Point and then redefine this variable in your code to an object instance.&amp;nbsp; Try these changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const myPoint ={
  type: "point",
  longitude: props.data[23],
  latitude: props.data[24]	 
};

const pointGraphic = new Graphic({
  geometry: myPoint,
  symbol: simpleMarkerSymbol  
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 14:27:16 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2021-04-13T14:27:16Z</dc:date>
    <item>
      <title>Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046184#M72475</link>
      <description>&lt;LI-CODE lang="javascript"&gt;import Graphic from '@arcgis/core/Graphic';
import Point from '@arcgis/core/geometry/Point';
import SimpleMarkerSymbol from '@arcgis/core/symbols/SimpleMarkerSymbol';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	componentDidUpdate (props) {
		console.log(props);
		const Point ={
			type: "point",
			longitude: props.data[23],
			latitude: props.data[24]
			 
		};
		const simpleMarkerSymbol = {
			type: "simple-marker",
			color: [46, 204, 113 ],  // Green
			outline: {
			color: [255, 255, 255], // white
			width: 1
			}
		};
		const pointGraphic = new Graphic({
			geometry: Point,
			symbol: simpleMarkerSymbol
			//attributes: attributes,
			//popupTemplate: popupTemplate
		});
		/*
		const graphicB = new Graphic({  // graphic with point geometry
			geometry: new Point({
				type: "point",
				longitude: props.data[23],
				latitude: props.data[24]
			}), // set geometry here
			symbol: new SimpleMarkerSymbol({
				type: "simple-marker",
				color: [46, 204, 113 ],  // Green
				outline: {
					color: [255, 255, 255], // white
					width: 1}
				})
				// set symbol here
		});
		*/

		this.props.view.graphics.add(pointGraphic);

		
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 01:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046184#M72475</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-13T01:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046354#M72479</link>
      <description>&lt;P&gt;You import the class Point and then redefine this variable in your code to an object instance.&amp;nbsp; Try these changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const myPoint ={
  type: "point",
  longitude: props.data[23],
  latitude: props.data[24]	 
};

const pointGraphic = new Graphic({
  geometry: myPoint,
  symbol: simpleMarkerSymbol  
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 14:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046354#M72479</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-04-13T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046366#M72481</link>
      <description>&lt;P&gt;Still gettign the error:&lt;/P&gt;&lt;P&gt;[esri.core.Accessor] Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	componentDidUpdate (props) {
		console.log(props);
		const myPoint ={
			type: "point",
			longitude: props.data[24],
			latitude: props.data[23]
			 
		};
		const simpleMarkerSymbol = {
			type: "simple-marker",
			color: [46, 204, 113 ],  // Green
			outline: {
			color: [255, 255, 255], // white
			width: 1
			}
		};
		const pointGraphic = new Graphic({
			geometry: myPoint,
			symbol: simpleMarkerSymbol
			//attributes: attributes,
			//popupTemplate: popupTemplate
		});
		/*
		const graphicB = new Graphic({  // graphic with point geometry
			geometry: new Point({
				type: "point",
				longitude: props.data[23],
				latitude: props.data[24]
			}), // set geometry here
			symbol: new SimpleMarkerSymbol({
				type: "simple-marker",
				color: [46, 204, 113 ],  // Green
				outline: {
					color: [255, 255, 255], // white
					width: 1}
				})
		});
		*/
		
		this.props.view.graphics.add(pointGraphic);
		
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 14:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046366#M72481</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-13T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046617#M72507</link>
      <description>&lt;P&gt;Do you have a simple CodePen showing the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 20:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1046617#M72507</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-04-13T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1048117#M72590</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Do you have an exmaple of the ESRI JS API import in CodePen?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 14:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1048117#M72590</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-16T14:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1609901#M87060</link>
      <description>&lt;P&gt;I occurred the same issue. Where I add an instance of&amp;nbsp;&lt;SPAN&gt;SimpleMarkerSymbol&lt;/SPAN&gt;&lt;SPAN&gt;. It is visible on the map but console shows the same error. I use JSAPI 4.30 with Expereience Builder. Does anyone has solved this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessor-set-assigning-an-instance-of-esri-graphic/m-p/1609901#M87060</guid>
      <dc:creator>ŁukaszWiszniewski</dc:creator>
      <dc:date>2025-04-29T11:41:39Z</dc:date>
    </item>
  </channel>
</rss>

