<?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: Editable graphics with real-world size in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66605#M5857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work, but I would try a hybrid approach where the GraphicsLayer provides the smooth update while editing and then when complete I would use a FeatureLayer and call applyEdits() so that subsequent scale changes are handled correctly the FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2019 17:19:44 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2019-03-12T17:19:44Z</dc:date>
    <item>
      <title>Editable graphics with real-world size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66604#M5856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a 2D map where PictureMarkerSymbols are scaled based on their real-world size. The user should be able to move and rotate the features. Symbols should be updated (moved/rotated) continuously while editing. I'm using ArcGIS JavaScript API 4.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To accomplish this, I tried creating a FeatureLayer with a SizeVariable assigned to its renderer. I used SketchViewModel with FeatureLayer.applyEdits() to move and rotate features based on user input. This approach sort of works, but editing is too laggy because of FeatureLayer.applyEdits() running asynchronously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As a workaround I tried switching from FeatureLayer to GraphicsLayer, which allowed me to apply edits synchronously and get smooth editing. Since GraphicsLayers don't support SizeVariables, I implemented custom symbol scaling on map scale change. The problem with this approach is that when you zoom in too much the symbols start glitching out (incorrect scaling and skewing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to a statement from Esri staff, there is an undocumented symbol max size of 120 pixels:&lt;BR /&gt;https://esri.jiveon.com/thread/226717-cut-off-of-symbols-with-webgl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably the cause of my scaling issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To support my use case, I think I need at least one of the following features implemented in ArcGIS JavaScript API:&lt;BR /&gt;- Updating features in FeatureLayer synchronously&lt;BR /&gt;- Using SizeVariable with GraphicsLayer&lt;BR /&gt;- Allowing symbol sizes larger than 120 pixels&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there perhaps another way to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66604#M5856</guid>
      <dc:creator>ChristianAlfons</dc:creator>
      <dc:date>2019-03-12T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Editable graphics with real-world size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66605#M5857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work, but I would try a hybrid approach where the GraphicsLayer provides the smooth update while editing and then when complete I would use a FeatureLayer and call applyEdits() so that subsequent scale changes are handled correctly the FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66605#M5857</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2019-03-12T17:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Editable graphics with real-world size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66606#M5858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with such a hybrid approach is that the user should be allowed to zoom while editing, so I would still have to dynamically scale symbols in the GraphicsLayer (and potentially hit the 120px limit).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editable-graphics-with-real-world-size/m-p/66606#M5858</guid>
      <dc:creator>ChristianAlfons</dc:creator>
      <dc:date>2019-03-13T15:14:47Z</dc:date>
    </item>
  </channel>
</rss>

