<?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: Update Point Renderer in Custom Data Feed in ArcGIS Enterprise Extensibility Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1627929#M458</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you let me know which version of ArcGIS Enterprise SDK you are working with? If you wouldn't mind, could you paste a little sample of marker rendering code you are trying implement? Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 18:28:56 GMT</pubDate>
    <dc:creator>John_Hash</dc:creator>
    <dc:date>2025-06-27T18:28:56Z</dc:date>
    <item>
      <title>Update Point Renderer in Custom Data Feed</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1627399#M457</link>
      <description>&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;I am banging my head against the wall trying to supply my custom data feed with a picture marker symbol. Nothing I have tried in the model.js file works. I was advised not to go messing with boilerplate stuff like the renderer.js file under /framework/featureserver/src/helpers. Has anyone else done this? If so could you help me understand how to accomplish this task?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 18:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1627399#M457</guid>
      <dc:creator>cepsgis</dc:creator>
      <dc:date>2025-06-26T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update Point Renderer in Custom Data Feed</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1627929#M458</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you let me know which version of ArcGIS Enterprise SDK you are working with? If you wouldn't mind, could you paste a little sample of marker rendering code you are trying implement? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 18:28:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1627929#M458</guid>
      <dc:creator>John_Hash</dc:creator>
      <dc:date>2025-06-27T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update Point Renderer in Custom Data Feed</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1629644#M460</link>
      <description>&lt;P&gt;We are using 11.4 of the sdk.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/716382"&gt;@John_Hash&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you let me know which version of ArcGIS Enterprise SDK you are working with? If you wouldn't mind, could you paste a little sample of marker rendering code you are trying implement? Thanks.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="javascript"&gt; let drones;
      try {
        drones = JSON.parse(body);
      } catch (parseError) {
        console.error('Failed to parse JSON:', parseError);
        self.error = parseError;
        return;
      }
      let drawingInfo = {

                renderer: {
                  symbol: {
                    outline: {
                      color: [255, 230, 1],
                      width: 200,
                      style: "esriSLSSolid",
                      type: "esriSLS"
                    }
                  }
                }
              }

      const geojson = {
        type: 'FeatureCollection',
        metadata: { idField: "id", name: 'FOOBARDrones', type: 'FeatureCollection', drawingInfo, maxRecordCount: 1000 },
        features: []
      };
      if (Array.isArray(drones) &amp;amp;&amp;amp; drones.length === 0) {
        geojson.features.push({
          type: 'Feature',
          geometry: { type: 'Point', coordinates: [-112.1, 33.5] },
          properties: {
            id: 314,
            name: 'NO DRONE',
            model: 'CEPSGIS',
            camera: 'IPHONE CAMERA',
            camera_id: 11122233,
            speed: 45,
            heading: -270,
            callSign: 'FOOBAR',
            altitudeAgl: 0,
            altitudeMsl: 0,
            video_url: 'https://www.youtube.com/watch?v=wZqeaUZ_2NM'
          }
        });
      } else {
        for (const drone of drones) {
          if (drone.latitude &amp;amp;&amp;amp; drone.longitude) {
            geojson.features.push({
              type: 'Feature',
              geometry: { type: 'Point', coordinates: [drone.longitude, drone.latitude] },
              properties: {
                id: drone.id,
                name: drone.missionName,
                model: drone.model,
                camera: drone.sensors[0]['name'],
                camera_id: drone.sensors[0]['id'],
                speed: drone.speed,
                heading: drone.heading,
                callSign: drone.callSign,
                altitudeAgl: drone.altitudeAgl,
                altitudeMsl: drone.altitudeMsl,
                video_url: drone.sensors[0]['video_url']
              }
            });
          }
        }
      }

      self.cachedGeojson = geojson;
      self.error = null;
    });
  }

  fetchData(); // run immediately
  setInterval(fetchData, 15000); // rerun every 15 seconds
};

Model.prototype.getData = function (req, callback) {
  if (this.error) {
    callback(this.error);
  } else {
    callback(null, this.cachedGeojson || { type: "FeatureCollection",drawingInfo:drawingInfo, features: [] });
  }
};

module.exports = Model;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Jul 2025 21:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1629644#M460</guid>
      <dc:creator>cepsgis</dc:creator>
      <dc:date>2025-07-02T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Update Point Renderer in Custom Data Feed</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1630048#M461</link>
      <description>&lt;P&gt;On line 25 of your code, the metadata property you need to use is `renderer`. I would try removing the top-level "renderer" key from your "drawingInfo" object.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      let drawingInfo = {
                  symbol: {
                    outline: {
                      color: [255, 230, 1],
                      width: 200,
                      style: "esriSLSSolid",
                      type: "esriSLS"
                    }
                  }
                }&lt;/LI-CODE&gt;&lt;P&gt;On line 25:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;metadata: { idField: "id", name: 'FOOBARDrones', type: 'FeatureCollection', renderer: drawingInfo, maxRecordCount: 1000 },&lt;/LI-CODE&gt;&lt;P&gt;Hopefully that will fix it. Please let me know the outcome.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 17:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/update-point-renderer-in-custom-data-feed/m-p/1630048#M461</guid>
      <dc:creator>John_Hash</dc:creator>
      <dc:date>2025-07-03T17:33:19Z</dc:date>
    </item>
  </channel>
</rss>

