<?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: Customize sketchviewmodel snapping highlight color? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289469#M81166</link>
    <description>&lt;P&gt;Yes, it is possible to customize the colors used by the SketchViewModel for snapping in the ArcGIS API for JavaScript. You can modify the default highlight and snapping dot colors by overriding the CSS styles associated with the snapping functionality.&lt;/P&gt;&lt;P&gt;To change the colors, you need to target the specific CSS classes associated with the snapping components. Here are the steps to customize the colors:&lt;/P&gt;&lt;P&gt;Identify the CSS classes: Inspect the HTML elements of the snapping highlight and snapping dot using your browser's developer tools. Look for the CSS classes associated with these elements. They are typically named with "esri-sketch-vm" followed by a specific name for the snapping component.&lt;/P&gt;&lt;P&gt;Override the CSS styles: Once you have identified the CSS classes, you can override their styles in your own CSS file or within a &amp;lt;style&amp;gt; tag in your HTML. You will need to specify the desired colors for the highlight and snapping dot components.&lt;/P&gt;&lt;P&gt;For example, to change the highlight color to blue and the snapping dot color to red, you can use the following CSS:&lt;/P&gt;&lt;P&gt;css&lt;BR /&gt;Copy code&lt;BR /&gt;/* Override the snapping highlight color */&lt;BR /&gt;.esri-sketch-vm-highlight {&lt;BR /&gt;fill: blue;&lt;BR /&gt;stroke: blue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Override the snapping dot color */&lt;BR /&gt;.esri-sketch-vm-snap-dot {&lt;BR /&gt;fill: red;&lt;BR /&gt;stroke: red;&lt;BR /&gt;}&lt;BR /&gt;Include the CSS in your HTML: Make sure to include the CSS file or &amp;lt;style&amp;gt; tag containing the custom styles in your HTML file after the ArcGIS API for JavaScript library is loaded.&lt;/P&gt;&lt;P&gt;By following these steps, you can customize the colors used by the SketchViewModel snapping functionality to match your desired design.&lt;/P&gt;&lt;P&gt;Please note that the specific CSS class names and structure may vary depending on the version of the ArcGIS API for JavaScript you are using. Make sure to inspect the HTML elements and CSS classes in your application to find the appropriate classes to target for customization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 05:32:59 GMT</pubDate>
    <dc:creator>RachelGomez</dc:creator>
    <dc:date>2023-05-16T05:32:59Z</dc:date>
    <item>
      <title>Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289254#M81160</link>
      <description>&lt;P&gt;I am using sketchViewModel with snappingOptions enabled. I am using a feature service as the snapping target.&lt;/P&gt;&lt;P&gt;The default behavior is that when the snapping cursor moves over the feature service features, they flash with the highlight color, which is orange, and the snapping dot color when one clicks to snap a point is also orange.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to customize these colors and change the orange to something else?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 18:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289254#M81160</guid>
      <dc:creator>EMiller_2</dc:creator>
      <dc:date>2023-05-15T18:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289469#M81166</link>
      <description>&lt;P&gt;Yes, it is possible to customize the colors used by the SketchViewModel for snapping in the ArcGIS API for JavaScript. You can modify the default highlight and snapping dot colors by overriding the CSS styles associated with the snapping functionality.&lt;/P&gt;&lt;P&gt;To change the colors, you need to target the specific CSS classes associated with the snapping components. Here are the steps to customize the colors:&lt;/P&gt;&lt;P&gt;Identify the CSS classes: Inspect the HTML elements of the snapping highlight and snapping dot using your browser's developer tools. Look for the CSS classes associated with these elements. They are typically named with "esri-sketch-vm" followed by a specific name for the snapping component.&lt;/P&gt;&lt;P&gt;Override the CSS styles: Once you have identified the CSS classes, you can override their styles in your own CSS file or within a &amp;lt;style&amp;gt; tag in your HTML. You will need to specify the desired colors for the highlight and snapping dot components.&lt;/P&gt;&lt;P&gt;For example, to change the highlight color to blue and the snapping dot color to red, you can use the following CSS:&lt;/P&gt;&lt;P&gt;css&lt;BR /&gt;Copy code&lt;BR /&gt;/* Override the snapping highlight color */&lt;BR /&gt;.esri-sketch-vm-highlight {&lt;BR /&gt;fill: blue;&lt;BR /&gt;stroke: blue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Override the snapping dot color */&lt;BR /&gt;.esri-sketch-vm-snap-dot {&lt;BR /&gt;fill: red;&lt;BR /&gt;stroke: red;&lt;BR /&gt;}&lt;BR /&gt;Include the CSS in your HTML: Make sure to include the CSS file or &amp;lt;style&amp;gt; tag containing the custom styles in your HTML file after the ArcGIS API for JavaScript library is loaded.&lt;/P&gt;&lt;P&gt;By following these steps, you can customize the colors used by the SketchViewModel snapping functionality to match your desired design.&lt;/P&gt;&lt;P&gt;Please note that the specific CSS class names and structure may vary depending on the version of the ArcGIS API for JavaScript you are using. Make sure to inspect the HTML elements and CSS classes in your application to find the appropriate classes to target for customization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289469#M81166</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2023-05-16T05:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289602#M81175</link>
      <description>&lt;P&gt;Thank you, this sounds like great advice, but unfortunately I have not been able to grab the CSS through the browser developer tools. I am using Experience Builder with the JavaScript API 4.x. I have a custom widget built with react which calls the sketchviewmodel. In my browser Experience I am only able to grab the map itself, which is a canvas element, and I can't grab the sketch highlighted items within the map. Am I missing something about how to grab these elements? I need to be able to drill into the canvas to get at them.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 14:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1289602#M81175</guid>
      <dc:creator>EMiller_2</dc:creator>
      <dc:date>2023-05-16T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1425677#M84538</link>
      <description>&lt;P&gt;Did you ever figure this out? I've tried everything I can to stop the snapping layer to be highlighted when the sketch point is being placed, but have had no luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 22:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1425677#M84538</guid>
      <dc:creator>JessicaHendricks444</dc:creator>
      <dc:date>2024-05-09T22:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1432398#M84551</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/418895"&gt;@JessicaHendricks444&lt;/a&gt;, no, I'm sorry to say I did not. In my case I do like the snapping and highlighting behavior, but I wanted the flexibility to change the orange color to something else, and I have not been able to do that.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 16:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1432398#M84551</guid>
      <dc:creator>EMiller_2</dc:creator>
      <dc:date>2024-05-10T16:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sketchviewmodel snapping highlight color?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1500242#M84961</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/470079"&gt;@EMiller_2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/418895"&gt;@JessicaHendricks444&lt;/a&gt;&amp;nbsp; Maybe &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-change-selection-color/td-p/1072811" target="_self"&gt;this&lt;/A&gt; post can help you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 11:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-sketchviewmodel-snapping-highlight-color/m-p/1500242#M84961</guid>
      <dc:creator>LuisSolaRuiz</dc:creator>
      <dc:date>2024-07-02T11:39:24Z</dc:date>
    </item>
  </channel>
</rss>

