<?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: Defaulting the scale to a larger size for all calcite icons on the sketch widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1343172#M82614</link>
    <description>&lt;P&gt;I basically did what I mentioned above - after the map and view have rendered, I determine the mode that the map is being rendered in and I bump the icon size up based on that:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const isForm = $(location).attr("href").toLowerCase().contains("/runtime/form/");
const scale = isForm ? "l" : "m";

// Set the scale for all calcite icons.
$("calcite-icon").attr("scale", scale);&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 07:13:19 GMT</pubDate>
    <dc:creator>nevvo</dc:creator>
    <dc:date>2023-10-30T07:13:19Z</dc:date>
    <item>
      <title>Defaulting the scale to a larger size for all calcite icons on the sketch widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1256461#M80208</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Is it possible to default the scale property on the icon here: &lt;A href="https://developers.arcgis.com/calcite-design-system/components/icon/#api-reference" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/calcite-design-system/components/icon/#api-reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I am creating a new sketch widget and specifying the available tools / visible elements using the OOB widget:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#visibleElements" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#visibleElements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The default scale property sets them to 's' and due to where I am hosting the map the styling on the page makes these appear really small.&lt;/P&gt;&lt;P&gt;I can use jQuery to enumerate all the calcite-icons on the page bump the scale up to 'm' but was looking for a more OOB solution if possible.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 15:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1256461#M80208</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-02-09T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the scale to a larger size for all calcite icons on the sketch widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1342920#M82598</link>
      <description>&lt;P&gt;We are also noticing the same problem with the calcite icons defaulting to the small scale rather than the medium. How did you manage to use jQuery to adjust the scale to medium?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 20:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1342920#M82598</guid>
      <dc:creator>AspenN</dc:creator>
      <dc:date>2023-10-27T20:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the scale to a larger size for all calcite icons on the sketch widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1343172#M82614</link>
      <description>&lt;P&gt;I basically did what I mentioned above - after the map and view have rendered, I determine the mode that the map is being rendered in and I bump the icon size up based on that:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const isForm = $(location).attr("href").toLowerCase().contains("/runtime/form/");
const scale = isForm ? "l" : "m";

// Set the scale for all calcite icons.
$("calcite-icon").attr("scale", scale);&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 07:13:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1343172#M82614</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-10-30T07:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the scale to a larger size for all calcite icons on the sketch widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1374312#M83455</link>
      <description>&lt;P&gt;I'm also experiencing this behaviour, thanks for sharing your solution.&lt;BR /&gt;I'd also like an out-of-the-box solution.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/defaulting-the-scale-to-a-larger-size-for-all/m-p/1374312#M83455</guid>
      <dc:creator>JonasDePelsmaeker</dc:creator>
      <dc:date>2024-01-25T11:32:42Z</dc:date>
    </item>
  </channel>
</rss>

