<?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 Change marker symbol to pushpin in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1204444#M78362</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Currently if a customer clicks on the map it drops a simple marker symbol (in red):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_0-1660900128854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48975i8034EEE73E5227FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_0-1660900128854.png" alt="ITApplications_0-1660900128854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_1-1660900322526.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48976i888DF5B67BB1CFF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_1-1660900322526.png" alt="ITApplications_1-1660900322526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to change the symbol to a pushpin and I've found the following on the ArcGIS API for Javascript site:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="3d symbol library" href="https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-3d/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-3d/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_2-1660900543727.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48977i6C72F7A0E263DF8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_2-1660900543727.png" alt="ITApplications_2-1660900543727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The web reference behind the link is:&lt;/P&gt;&lt;PRE&gt;{"name":"Pushpin 2","type":"PointSymbol3D","symbolLayers":[{"type":"Icon","size":20,"anchor":"bottom","material":{"color":[232,157,0],"transparency":0},"resource":{"href":"https://static.arcgis.com/arcgis/styleItems/Icons/web/resource/Pushpin2.svg"}}]}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've tried putting this into my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_3-1660900747880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48978iCF12355E41A116E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_3-1660900747880.png" alt="ITApplications_3-1660900747880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it's not working. Do I need to put the WebStyleSymbol syntax somewhere in my code or have I updated the current symbol code incorrectly?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 09:22:47 GMT</pubDate>
    <dc:creator>ITApplications</dc:creator>
    <dc:date>2022-08-19T09:22:47Z</dc:date>
    <item>
      <title>Change marker symbol to pushpin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1204444#M78362</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Currently if a customer clicks on the map it drops a simple marker symbol (in red):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_0-1660900128854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48975i8034EEE73E5227FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_0-1660900128854.png" alt="ITApplications_0-1660900128854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_1-1660900322526.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48976i888DF5B67BB1CFF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_1-1660900322526.png" alt="ITApplications_1-1660900322526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to change the symbol to a pushpin and I've found the following on the ArcGIS API for Javascript site:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="3d symbol library" href="https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-3d/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-3d/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_2-1660900543727.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48977i6C72F7A0E263DF8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_2-1660900543727.png" alt="ITApplications_2-1660900543727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The web reference behind the link is:&lt;/P&gt;&lt;PRE&gt;{"name":"Pushpin 2","type":"PointSymbol3D","symbolLayers":[{"type":"Icon","size":20,"anchor":"bottom","material":{"color":[232,157,0],"transparency":0},"resource":{"href":"https://static.arcgis.com/arcgis/styleItems/Icons/web/resource/Pushpin2.svg"}}]}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've tried putting this into my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITApplications_3-1660900747880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48978iCF12355E41A116E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITApplications_3-1660900747880.png" alt="ITApplications_3-1660900747880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it's not working. Do I need to put the WebStyleSymbol syntax somewhere in my code or have I updated the current symbol code incorrectly?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 09:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1204444#M78362</guid>
      <dc:creator>ITApplications</dc:creator>
      <dc:date>2022-08-19T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change marker symbol to pushpin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1204624#M78375</link>
      <description>&lt;P&gt;That link is for the 3D SymbolStyles, you want to use the 2D symbol styles&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-2d/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-2d/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const webStyleSymbol = new WebStyleSymbol({
  name: "push-pin-1",
  styleName: "Esri2DPointSymbolsStyle"
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to tweak it a bit, each 2D Web Style Symbol is also available as a CIM Symbol and you can modify the symbology a bit as you need. There's a tab to select the CIM JSON.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneRubalcava_0-1660928647887.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49024i7AED243E9622A1DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneRubalcava_0-1660928647887.png" alt="ReneRubalcava_0-1660928647887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 17:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1204624#M78375</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-08-19T17:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change marker symbol to pushpin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1217393#M78869</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;, apologies I'd completely missed your response.&lt;BR /&gt;&lt;BR /&gt;where would I put the web style symbol in my code? Guessing I'd need to edit it in here somewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; view.on("click", function (evt) {
          if (view.scale &amp;lt;= 3500)
          var graphic = new Graphic({
            geometry: {
              type: "point",
              x: evt.mapPoint.x,
              y: evt.mapPoint.y,
              spatialReference: view.spatialReference,
            },
            symbol: {
              type: "simple-marker",
              color: [255, 10, 10],
            outline: {
              color: [255, 255, 255],
              width: 2,
              },
            },
          });
          view.graphics.removeAll();
          view.graphics.add(graphic);
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1217393#M78869</guid>
      <dc:creator>ITApplications</dc:creator>
      <dc:date>2022-09-29T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change marker symbol to pushpin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1218031#M78890</link>
      <description>&lt;P&gt;...maybe try something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.on("click", function (evt) {
  if (view.scale &amp;lt;= 3500) {
    var graphic = new Graphic({
      geometry: {
        type: "point",
        x: evt.mapPoint.x,
        y: evt.mapPoint.y,
        spatialReference: view.spatialReference,
      },
      symbol: {
        type: "web-style",
        name: "push-pin-1",
        styleName: "Esri2DPointSymbolsStyle"
      } 
    });  
    view.graphics.removeAll();
    view.graphics.add(graphic);
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 20:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1218031#M78890</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-09-30T20:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change marker symbol to pushpin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1218195#M78895</link>
      <description>&lt;P&gt;That's worked great, thanks John and thanks Rene for the initial suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-marker-symbol-to-pushpin/m-p/1218195#M78895</guid>
      <dc:creator>ITApplications</dc:creator>
      <dc:date>2022-10-03T08:28:42Z</dc:date>
    </item>
  </channel>
</rss>

