<?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 Dynamically Change the angle of the PictureMarkerSymbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-change-the-angle-of-the/m-p/1147948#M76480</link>
    <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two questions about this topic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;First Question;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added PictureMarkerSymbol on my project using this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const point = {
            type: "point",
            longitude: X,
            latitude: Y
          };
          const markerSymbol = {
            type: "picture-marker",

            url : "your_url",
            width: "30px",
            height: "50px",
            angle: yaw, 
          };
          const pointGraphic = new Graphic({
            geometry: point,
            symbol: markerSymbol,
          }); 
          view.graphics.add(pointGraphic); 
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I cannot dynamically change the yaw angle value of the PictureMarkerSymbol.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I get the yaw angle value from the panoramic image with the mousedown method.&amp;nbsp;I can use this yaw angle value to create a new PictureMarkerSymbol.&amp;nbsp;But I wanna do something like this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://krpano.com/examples/116/examples/virtual-tours/scenes-with-imagemap-2/scenes-with-imagemap-2.html" target="_blank" rel="noopener"&gt;https://krpano.com/examples/116/examples/virtual-tours/scenes-with-imagemap-2/scenes-with-imagemap-2.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;How can I do that...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Second Question;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TarikBayram_1-1645792546376.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34988i530C198A88DD3D5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="TarikBayram_1-1645792546376.png" alt="TarikBayram_1-1645792546376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I add a new marker there are multiple markers as in the picture&lt;/SPAN&gt;&lt;SPAN class=""&gt;, I want the previous marker to be deleted but the clear() method is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(pointGraphic){
          pointGraphic.clear();
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 12:40:06 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-02-25T12:40:06Z</dc:date>
    <item>
      <title>Dynamically Change the angle of the PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-change-the-angle-of-the/m-p/1147948#M76480</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two questions about this topic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;First Question;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added PictureMarkerSymbol on my project using this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const point = {
            type: "point",
            longitude: X,
            latitude: Y
          };
          const markerSymbol = {
            type: "picture-marker",

            url : "your_url",
            width: "30px",
            height: "50px",
            angle: yaw, 
          };
          const pointGraphic = new Graphic({
            geometry: point,
            symbol: markerSymbol,
          }); 
          view.graphics.add(pointGraphic); 
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I cannot dynamically change the yaw angle value of the PictureMarkerSymbol.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I get the yaw angle value from the panoramic image with the mousedown method.&amp;nbsp;I can use this yaw angle value to create a new PictureMarkerSymbol.&amp;nbsp;But I wanna do something like this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://krpano.com/examples/116/examples/virtual-tours/scenes-with-imagemap-2/scenes-with-imagemap-2.html" target="_blank" rel="noopener"&gt;https://krpano.com/examples/116/examples/virtual-tours/scenes-with-imagemap-2/scenes-with-imagemap-2.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;How can I do that...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Second Question;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TarikBayram_1-1645792546376.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34988i530C198A88DD3D5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="TarikBayram_1-1645792546376.png" alt="TarikBayram_1-1645792546376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I add a new marker there are multiple markers as in the picture&lt;/SPAN&gt;&lt;SPAN class=""&gt;, I want the previous marker to be deleted but the clear() method is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(pointGraphic){
          pointGraphic.clear();
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-change-the-angle-of-the/m-p/1147948#M76480</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-02-25T12:40:06Z</dc:date>
    </item>
  </channel>
</rss>

