<?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: Merge MultilayerPointSymbol's with a yoffset on one of the symbols in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571732#M13218</link>
    <description>&lt;P&gt;That was it. Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 18:07:52 GMT</pubDate>
    <dc:creator>KarenRobine1</dc:creator>
    <dc:date>2024-12-30T18:07:52Z</dc:date>
    <item>
      <title>Merge MultilayerPointSymbol's with a yoffset on one of the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571523#M13216</link>
      <description>&lt;P&gt;I've got 2 MultilayerPointSymbols that I extracted from CIM Json.&amp;nbsp; I want to merge the 2 symbols together so that the actSymbol is on top of the mapMarkerSymbol and the actSymbol has a Y offset so that it's pushed up a bit (that way it'll fit better).. But I don't see anyway to give it a yoffset?&lt;/P&gt;&lt;P&gt;In the picture below, you can see the motorcycle and the EyeDrop symbol. I want to push the motorcyle up a bit.&lt;/P&gt;&lt;P&gt;Code and Image Follows:&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;string cimJson = "{\"type\":\"CIMPointSymbol\",\"symbolLayers\":[{\"type\":\"CIMVectorMarker\",\"enable\":true,\"anchorPointUnits\":\"Relative\",\"dominantSizeAxis3D\":\"Z\",\"size\":24,\"billboardMode3D\":\"FaceNearPlane\",\"frame\":{\"xmin\":0,\"ymin\":0,\"xmax\":24,\"ymax\":24},\"markerGraphics\":[{\"type\":\"CIMMarkerGraphic\",\"geometry\":{\"rings\":[[[12,2],[14.92,5.69],[17.19,9.3],[17.98,10.91],[18.54,12.41],[18.89,13.77],[19,15],[18.97,15.63],[18.94,15.95],[18.88,16.27],[18.81,16.6],[18.73,16.93],[18.63,17.25],[18.51,17.58],[18.37,17.9],[18.22,18.22],[18.05,18.53],[17.86,18.83],[17.65,19.13],[17.43,19.41],[17.2,19.69],[16.95,19.95],[16.69,20.2],[16.41,20.43],[16.13,20.65],[15.83,20.86],[15.53,21.05],[15.22,21.22],[14.9,21.37],[14.58,21.51],[14.25,21.63],[13.93,21.73],[13.6,21.81],[13.27,21.88],[12.95,21.94],[12.63,21.97],[12.31,21.99],[12,22],[10.78,21.89],[9.61,21.58],[8.5,21.06],[7.5,20.36],[6.64,19.5],[5.94,18.5],[5.42,17.39],[5.11,16.22],[5,15],[5.11,13.77],[5.46,12.41],[6.02,10.91],[6.81,9.3],[9.08,5.69],[12,2]]]},\"symbol\":{\"type\":\"CIMPolygonSymbol\",\"symbolLayers\":[{\"type\":\"CIMSolidFill\",\"enable\":true,\"color\":[0,0,0,255]}],\"angleAlignment\":\"Map\"}}],\"scaleSymbolsProportionally\":true,\"respectFrame\":true,\"clippingPath\":{\"type\":\"CIMClippingPath\",\"clippingType\":\"Intersect\",\"path\":{\"rings\":[[[0,0],[24,0],[24,24],[0,24],[0,0]]]}}}],\"haloSize\":1,\"scaleX\":1,\"angleAlignment\":\"Display\"}";&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;string actJson = "{\"type\":\"CIMPointSymbol\",\"symbolLayers\":[{\"type\":\"CIMVectorMarker\",\"enable\":true,\"anchorPointUnits\":\"Relative\",\"dominantSizeAxis3D\":\"Z\",\"size\":11,\"billboardMode3D\":\"FaceNearPlane\",\"frame\":{\"xmin\":0.0,\"ymin\":0.0,\"xmax\":24.0,\"ymax\":24.0},\"markerGraphics\":[{\"type\":\"CIMMarkerGraphic\",\"geometry\":{\"rings\":[[[20.0,7.0],[19.24,7.15],[18.59,7.59],[18.15,8.24],[18.0,9.0],[18.15,9.76],[18.59,10.41],[19.24,10.85],[20.0,11.0],[20.76,10.85],[21.41,10.41],[21.85,9.76],[22.0,9.0],[21.85,8.24],[21.41,7.59],[20.76,7.15],[20.0,7.0]],[[4.0,7.0],[3.24,7.15],[2.59,7.59],[2.15,8.24],[2.0,9.0],[2.15,9.76],[2.59,10.41],[3.24,10.85],[4.0,11.0],[4.76,10.85],[5.41,10.41],[5.85,9.76],[6.0,9.0],[5.85,8.24],[5.41,7.59],[4.76,7.15],[4.0,7.0]],[[4.0,5.0],[5.53,5.3],[6.83,6.17],[7.7,7.47],[8.0,9.0],[10.0,7.0],[13.0,7.0],[16.5,13.1],[17.5,12.1],[16.88,11.49],[16.41,10.72],[16.1,9.87],[16.0,9.0],[16.3,7.47],[17.17,6.17],[18.47,5.3],[20.0,5.0],[21.53,5.3],[22.83,6.17],[23.7,7.47],[24.0,9.0],[23.7,10.53],[22.83,11.83],[21.53,12.7],[20.0,13.0],[19.5,12.9],[17.4,15.0],[20.0,15.0],[20.0,18.0],[16.3,16.1],[13.4,19.0],[9.0,19.0],[9.0,17.0],[12.6,17.0],[14.6,15.0],[11.0,15.0],[7.0,13.0],[5.0,15.0],[0.0,15.0],[0.0,13.0],[4.0,13.0],[2.47,12.7],[1.18,11.82],[0.3,10.53],[0.0,9.0],[0.3,7.47],[1.18,6.18],[2.47,5.3],[4.0,5.0]]]},\"symbol\":{\"type\":\"CIMPolygonSymbol\",\"symbolLayers\":[{\"type\":\"CIMSolidFill\",\"enable\":true,\"color\":[0,0,0,255]}],\"angleAlignment\":\"Map\"}}],\"scaleSymbolsProportionally\":true,\"respectFrame\":true,\"clippingPath\":{\"type\":\"CIMClippingPath\",\"clippingType\":\"Intersect\",\"path\":{\"rings\":[[[0.0,0.0],[24.0,0.0],[24.0,24.0],[0.0,24.0],[0.0,0.0]]]}}}],\"haloSize\":1,\"scaleX\":1,\"angleAlignment\":\"Display\"}";&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;var mapMarkerSymbol = Symbol.FromJson(cimJson) as MultilayerPointSymbol;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;&lt;STRONG&gt;var actSymbol&lt;/STRONG&gt; = Symbol.FromJson(actJson) as MultilayerPointSymbol;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;IList&amp;lt;SymbolLayer&amp;gt; newSymbolLayers = new List&amp;lt;SymbolLayer&amp;gt;();&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;foreach (SymbolLayer lyr in mapMarkerSymbol.SymbolLayers)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;newSymbolLayers.Add(lyr); //VectorMarkerSymbolLayer,&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;foreach (SymbolLayer lyr in actSym.SymbolLayers)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;newSymbolLayers.Add(lyr);&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;var finalSym = new MultilayerPointSymbol(newSymbolLayers);&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="actSymbol.PNG" style="width: 139px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/122498i396B5716E58DB756/image-size/large?v=v2&amp;amp;px=999" role="button" title="actSymbol.PNG" alt="actSymbol.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 19:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571523#M13216</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2024-12-27T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge MultilayerPointSymbol's with a yoffset on one of the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571560#M13217</link>
      <description>&lt;P&gt;Hello Karen,&lt;/P&gt;&lt;P&gt;Thank you for your query.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To adjust the vertical position of the motorcycle symbol, you can modify the VectorMarkerSymbolLayer's &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OffsetY&lt;/FONT&gt;&lt;/STRONG&gt; property before adding it to the combined symbol. Here's how to modify your code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IList&amp;lt;SymbolLayer&amp;gt; newSymbolLayers = new List&amp;lt;SymbolLayer&amp;gt;();

foreach (SymbolLayer lyr in mapMarkerSymbol.SymbolLayers)
{
    newSymbolLayers.Add(lyr); //VectorMarkerSymbolLayer, 
}
foreach (SymbolLayer lyr in actSym.SymbolLayers)
{
    if (lyr is VectorMarkerSymbolLayer vectorLayer)
    {
        vectorLayer.OffsetY = 5; // Adjust Y offset to move the motorcycle up
    }
    newSymbolLayers.Add(lyr);
}

var finalSym = new MultilayerPointSymbol(newSymbolLayers);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key change is checking if each layer is a &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;VectorMarkerSymbolLayer&lt;/FONT&gt;&lt;/STRONG&gt; and setting its &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OffsetY&lt;/FONT&gt;&lt;/STRONG&gt; property. You can adjust the value of 5 up or down to fine-tune the positioning of the motorcycle symbol. A positive value moves it up, while a negative value would move it down.&lt;/P&gt;&lt;P&gt;Let me know if this clarifies your situation.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2024 02:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571560#M13217</guid>
      <dc:creator>pnarkhede</dc:creator>
      <dc:date>2024-12-28T02:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merge MultilayerPointSymbol's with a yoffset on one of the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571732#M13218</link>
      <description>&lt;P&gt;That was it. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 18:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/merge-multilayerpointsymbol-s-with-a-yoffset-on/m-p/1571732#M13218</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2024-12-30T18:07:52Z</dc:date>
    </item>
  </channel>
</rss>

