<?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: &amp;quot;Pin&amp;quot; style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299858#M81406</link>
    <description>&lt;P&gt;Hm.&amp;nbsp; still having trouble with the fetch and clone statements.&amp;nbsp; any examples?&lt;/P&gt;&lt;P&gt;I also found a way(from another excellent online Symbol playground-https://gis.sanramon.ca.gov/arcgis_js_api/sdk/samples/playground/index.html) to use a SimpleMarkerSymbol and a Path to create the Pin.&amp;nbsp; &amp;nbsp;not sure where/how the Path was made,&amp;nbsp; but I used it in my JS 4x script and the parameters were editable(see image),&amp;nbsp; However,&amp;nbsp; the location of the Marker/Path pin is off from the actual Feature location..probably in the center of the Marker instead of pin point.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love to know how to adjust the SimpleMarkerSymbol location OR just be able to use your Fetch/Clone to alter the WebStyleSymbol.&lt;/P&gt;&lt;P&gt;thx all!&lt;/P&gt;&lt;P&gt;the newest JS..&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;render&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"simple"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;symbol&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"30px"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"orange"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outline&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"white"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 15 Jun 2023 17:24:23 GMT</pubDate>
    <dc:creator>Paco</dc:creator>
    <dc:date>2023-06-15T17:24:23Z</dc:date>
    <item>
      <title>"Pin" style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299512#M81401</link>
      <description>&lt;P&gt;Hello all.&amp;nbsp;&amp;nbsp;&amp;nbsp; struggling with something as simple as changing the size and color of point markers in JS 4x.&lt;/P&gt;&lt;P&gt;I want to use the google "Pin" style marker,&amp;nbsp; which i found in the WebStyleSymbol class,&amp;nbsp; but it seems to only render as gray and one size.&amp;nbsp;&amp;nbsp; Can i change those parameters?&lt;/P&gt;&lt;P&gt;Or,&amp;nbsp; is there already an existing "Pin" style SimpleMarkerSymbol that i can more easily change those parameters.&lt;/P&gt;&lt;P&gt;this draws the "Pins" just fine on my mapview,&amp;nbsp; but I need to change the size and color.&amp;nbsp; Thanks!(see image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let render = newSimpleMarkerSymbol&lt;BR /&gt;&amp;nbsp;type: "simple", // autocasts as new SimpleRenderer()&lt;BR /&gt;&amp;nbsp;symbol: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; type: "web-style", // autocasts as new WebStyleSymbol()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; name: "tear-pin-2",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; styleName: "Esri2DPointSymbolsStyle"&lt;BR /&gt;},&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 00:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299512#M81401</guid>
      <dc:creator>Paco</dc:creator>
      <dc:date>2023-06-15T00:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Pin" style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299647#M81405</link>
      <description>&lt;P&gt;Looks like it is setting up a new SimpleMarkerSymbol, but you really want a&amp;nbsp;WebStyleSymbol. The example above is a bit of a combo of the two.&lt;/P&gt;&lt;P&gt;If you want to modify the color or size of a WebStyleSymbol you need to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchSymbol" target="_blank"&gt;fetchSymbol()&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get the actual symbol object from the web style, then modify&amp;nbsp;the color or size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can do some playing around with basics Symbols in the Symbol Builder (mini app) to play around with both SimpleMarkerSymbols and WebStyleSymbols to create a symbol and copy the code:&lt;/P&gt;&lt;P&gt;Simple:&amp;nbsp;&lt;A href="https://sagewall.github.io/symbol-builder/simple-marker-symbol/" target="_blank" rel="noopener"&gt;Symbol Builder (sagewall.github.io)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;WebStyle:&amp;nbsp;&lt;A href="https://sagewall.github.io/symbol-builder/web-style-symbol/" target="_blank" rel="noopener"&gt;Symbol Builder (sagewall.github.io)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299647#M81405</guid>
      <dc:creator>BryanMc</dc:creator>
      <dc:date>2023-06-15T13:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Pin" style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299858#M81406</link>
      <description>&lt;P&gt;Hm.&amp;nbsp; still having trouble with the fetch and clone statements.&amp;nbsp; any examples?&lt;/P&gt;&lt;P&gt;I also found a way(from another excellent online Symbol playground-https://gis.sanramon.ca.gov/arcgis_js_api/sdk/samples/playground/index.html) to use a SimpleMarkerSymbol and a Path to create the Pin.&amp;nbsp; &amp;nbsp;not sure where/how the Path was made,&amp;nbsp; but I used it in my JS 4x script and the parameters were editable(see image),&amp;nbsp; However,&amp;nbsp; the location of the Marker/Path pin is off from the actual Feature location..probably in the center of the Marker instead of pin point.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I would love to know how to adjust the SimpleMarkerSymbol location OR just be able to use your Fetch/Clone to alter the WebStyleSymbol.&lt;/P&gt;&lt;P&gt;thx all!&lt;/P&gt;&lt;P&gt;the newest JS..&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;render&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"simple"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;symbol&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"30px"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"orange"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outline&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"white"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:24:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299858#M81406</guid>
      <dc:creator>Paco</dc:creator>
      <dc:date>2023-06-15T17:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: "Pin" style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299879#M81407</link>
      <description>&lt;P&gt;Okay,&amp;nbsp;&amp;nbsp; my temporary fix(possibly permanent because it does seem to be working just fine) to the SimpleMarkerSymbol - Path "shift" issue is using the "xoffset/yoffset" parameter in the symbol.&lt;/P&gt;&lt;P&gt;now my 'Pin' symbol point is at the FeatureLayer location.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 18:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1299879#M81407</guid>
      <dc:creator>Paco</dc:creator>
      <dc:date>2023-06-15T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: "Pin" style point symbol using WebStyleSymbol or SimpleMarkerSymbol, and how to change it's size/color</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1300072#M81415</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/441597"&gt;@Paco&lt;/a&gt;&amp;nbsp;- I think your solution with the offsets is the way to go and less code/effort. If you were going to use the defaults for the webStyle it is straight forward, but fetching and changing is more work since this is a simple shape and you have already figured out the path property.&lt;/P&gt;&lt;P&gt;The "path" is just an SVG path, so you could open in a SVG editor (like &lt;A href="https://yqnn.github.io/svg-path-editor/" target="_blank" rel="noopener"&gt;this one&lt;/A&gt;) to tweak the shape as well. The offset should work great as you can make items align to the tip of the pin.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 01:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-pin-quot-style-point-symbol-using/m-p/1300072#M81415</guid>
      <dc:creator>BryanMc</dc:creator>
      <dc:date>2023-06-16T01:59:17Z</dc:date>
    </item>
  </channel>
</rss>

