<?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 Size of the webstyle symbol on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1314939#M81850</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the tear-pin-2 from the webstyle symbol to be rendered on the map. Is there way attribute to change the size of the webstyle symbol which is present on the map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;          view.graphics.add({
            symbol: new WebStyleSymbol({
              name: marker.category.icon,
              styleName: "Esri2DPointSymbolsStyle",
            }),
            
            geometry: {
              type: "point",
              longitude: marker.lng,
              latitude: marker.lat
            },
            // content can be customised from the data got from the API
            popupTemplate: {
              title: "San Diego Zoo",
              content: "content string"
            }
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions to solve the problem.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 07:51:36 GMT</pubDate>
    <dc:creator>KarthikeyanShanmugam</dc:creator>
    <dc:date>2023-08-03T07:51:36Z</dc:date>
    <item>
      <title>Size of the webstyle symbol on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1314939#M81850</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the tear-pin-2 from the webstyle symbol to be rendered on the map. Is there way attribute to change the size of the webstyle symbol which is present on the map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;          view.graphics.add({
            symbol: new WebStyleSymbol({
              name: marker.category.icon,
              styleName: "Esri2DPointSymbolsStyle",
            }),
            
            geometry: {
              type: "point",
              longitude: marker.lng,
              latitude: marker.lat
            },
            // content can be customised from the data got from the API
            popupTemplate: {
              title: "San Diego Zoo",
              content: "content string"
            }
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions to solve the problem.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1314939#M81850</guid>
      <dc:creator>KarthikeyanShanmugam</dc:creator>
      <dc:date>2023-08-03T07:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Size of the webstyle symbol on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315181#M81854</link>
      <description>&lt;P&gt;You'll have to get the underlying CIMSymbol reference via &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchCIMSymbol" target="_self"&gt;fetchCIMSymbol&lt;/A&gt;, adjust its size, and use it directly.&amp;nbsp; For example, this doubles the size of the icon:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var symbol = new WebStyleSymbol({
	name: "tear-pin-2",
  	styleName: "Esri2DPointSymbolsStyle"
});

symbol.fetchCIMSymbol().then(function(cimSymbol) {
	cimSymbol.data.symbol.symbolLayers.forEach(function(symbolLayer) {
		symbolLayer.size = symbolLayer.size * 2;
	});

	view.graphics.add({
		symbol: cimSymbol,
		geometry: {/* etc */},
		popupTemplate: {/* etc */}
	});
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315181#M81854</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-03T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Size of the webstyle symbol on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315323#M81857</link>
      <description>&lt;P&gt;You can also use the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html" target="_self"&gt;cimSymbolUtils&lt;/A&gt; to help with some of these tasks, in your use case the 'scaleCIMSymbolTo()' method.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 21:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315323#M81857</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2023-08-03T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Size of the webstyle symbol on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315907#M81871</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp; It worked&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 05:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/size-of-the-webstyle-symbol-on-the-map/m-p/1315907#M81871</guid>
      <dc:creator>KarthikeyanShanmugam</dc:creator>
      <dc:date>2023-08-07T05:59:13Z</dc:date>
    </item>
  </channel>
</rss>

