<?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 highlightOptions class property works on Sketch 2D, but not on SketchViewModel 2D (4.26) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlightoptions-class-property-works-on-sketch-2d/m-p/1318807#M81980</link>
    <description>&lt;P&gt;We are currently using ArcGIS JS API version 4.26 in a custom mapping application, and noticed that the default "highlighter blue" polygon for shape editing cannot be disabled in the SketchViewModel class. However, it works fine on Sketch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our custom JS code, we are setting up&amp;nbsp;highlightOptions to disabled to match the official SDK documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When declaring a new SketchViewModel 2D, we are doing it like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Editor_SketchViewModel = new SketchViewModel({
        view: mapview,
        layer: SketchGraphicsLayer, 
        defaultUpdateOptions: {
            highlightOptions: {
                enabled: false
            }
        }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setting up the .update() event, we are doing it like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Editor_SketchViewModel.update(SketchGraphicsLayer.graphics.items, { tool: "transform", highlightOptions: { enabled: false } });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 17:26:14 GMT</pubDate>
    <dc:creator>GilbertNg2</dc:creator>
    <dc:date>2023-08-15T17:26:14Z</dc:date>
    <item>
      <title>highlightOptions class property works on Sketch 2D, but not on SketchViewModel 2D (4.26)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlightoptions-class-property-works-on-sketch-2d/m-p/1318807#M81980</link>
      <description>&lt;P&gt;We are currently using ArcGIS JS API version 4.26 in a custom mapping application, and noticed that the default "highlighter blue" polygon for shape editing cannot be disabled in the SketchViewModel class. However, it works fine on Sketch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our custom JS code, we are setting up&amp;nbsp;highlightOptions to disabled to match the official SDK documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When declaring a new SketchViewModel 2D, we are doing it like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Editor_SketchViewModel = new SketchViewModel({
        view: mapview,
        layer: SketchGraphicsLayer, 
        defaultUpdateOptions: {
            highlightOptions: {
                enabled: false
            }
        }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setting up the .update() event, we are doing it like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Editor_SketchViewModel.update(SketchGraphicsLayer.graphics.items, { tool: "transform", highlightOptions: { enabled: false } });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 17:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlightoptions-class-property-works-on-sketch-2d/m-p/1318807#M81980</guid>
      <dc:creator>GilbertNg2</dc:creator>
      <dc:date>2023-08-15T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: highlightOptions class property works on Sketch 2D, but not on SketchViewModel 2D (4.26)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlightoptions-class-property-works-on-sketch-2d/m-p/1319279#M81989</link>
      <description>&lt;P&gt;If anyone has a solution or workaround, please let us know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 18:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlightoptions-class-property-works-on-sketch-2d/m-p/1319279#M81989</guid>
      <dc:creator>GilbertNg2</dc:creator>
      <dc:date>2023-08-16T18:55:13Z</dc:date>
    </item>
  </channel>
</rss>

