<?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 Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other styles in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348586#M8958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working in Silverlight with SimpleMarkerSymbols, we noticed that Triangle style symbols have a different origin from other styles (e.g. Circle). We want to correct this problem in code, but how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached image. The Circle marker (as well as other styles), center on the same point -- marked with the small black point. However, Triangle markers are located with an offset -- down and to the right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are seeing this behavior graphics in GraphicLayers and FeatureLayers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to workaround this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Unfortunately, the XOffset and YOffset properties are NOT settable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See note "Setting the OffsetX property is not allowed on the SimpleMarkerSymbol sub class." here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/topic835.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/topic835.html&lt;/A&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried directly setting these properties directly, but I get a "not supported" exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;markerSymbol.OffsetX = 0;
markerSymbol.OffsetY = 0;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried this, but I get System.ArgumentException was unhandled by user code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Message='0' is not a valid value for property 'OffsetX'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;markerSymbol.SetValue(MarkerSymbol.OffsetXProperty, 0);
markerSymbol.SetValue(MarkerSymbol.OffsetYProperty, 0);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have combed the doc/forums and not figured this out. I wonder if I can use .ControlTemplate to solve this, but I am not sure how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best idea would be to find a way to set x/y offset, trap for the Triangle style, and set values for these based on symbol size to "shift" marker back from whence it came.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas/solutions out there to this one? I am using ESRI.ArcGIS.Client.dll Version 2.2.0.629.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Cory&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:24:03 GMT</pubDate>
    <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
    <dc:date>2021-12-11T16:24:03Z</dc:date>
    <item>
      <title>Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other styles</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348586#M8958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working in Silverlight with SimpleMarkerSymbols, we noticed that Triangle style symbols have a different origin from other styles (e.g. Circle). We want to correct this problem in code, but how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached image. The Circle marker (as well as other styles), center on the same point -- marked with the small black point. However, Triangle markers are located with an offset -- down and to the right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are seeing this behavior graphics in GraphicLayers and FeatureLayers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to workaround this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Unfortunately, the XOffset and YOffset properties are NOT settable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See note "Setting the OffsetX property is not allowed on the SimpleMarkerSymbol sub class." here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/topic835.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/topic835.html&lt;/A&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried directly setting these properties directly, but I get a "not supported" exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;markerSymbol.OffsetX = 0;
markerSymbol.OffsetY = 0;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried this, but I get System.ArgumentException was unhandled by user code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Message='0' is not a valid value for property 'OffsetX'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;markerSymbol.SetValue(MarkerSymbol.OffsetXProperty, 0);
markerSymbol.SetValue(MarkerSymbol.OffsetYProperty, 0);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have combed the doc/forums and not figured this out. I wonder if I can use .ControlTemplate to solve this, but I am not sure how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best idea would be to find a way to set x/y offset, trap for the Triangle style, and set values for these based on symbol size to "shift" marker back from whence it came.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas/solutions out there to this one? I am using ESRI.ArcGIS.Client.dll Version 2.2.0.629.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Cory&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348586#M8958</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2021-12-11T16:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other style</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348587#M8959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OffsetX, OffsetY can be set on a MarkerSymbol (like in this example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols&lt;/A&gt;&lt;SPAN&gt;). There are more custom symbols here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 03:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348587#M8959</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-11-23T03:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other style</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348588#M8960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply, but this doesn't answer my questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) How can I set the XOffset/YOffset of a SimpleMarkerSymbol? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Is the behavior of the Triangle SimpleMarkerSymbol&amp;nbsp; (described in my original post) a bug in your system? How can I work around it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, we have it on our "todo" list to look at how we're using symbols in our SL app (markers specifically). The custom symbols and symbol gallery definitely show me that this is where we want to go (interactivity, snazzy look and feel)... BUT, I am fairly certain that the reason why we went with SimpleMarkerSymbols was to support our own printing/pdf generation solution... (aside: we are using a print solution from a 3rd party, which depends at some level on Web ADF I believe).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) ...so, my last question is: We are using ArcGIS Server 10.0 and SL 2.2. If we use symbols as provided in the symbol gallery/custom symbols sample, what are our choices for producing pdf and high resolution image output that includes these symbols? Is there a recommended ESRI solution, and what is it? With the recommended solution, does ESRI api provide translators to automatically handle these types of symbols, or does one need to code one's own translators?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Cory&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 11:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348588#M8960</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2011-11-23T11:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other style</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348589#M8961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I meant to say that changing offsets in SimpleMarkerSymbol is not supported which why I suggested looking into MarkerSymbol instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The symbol template used for SimpleMarkerSymbol has not changed, we do not apply offset or transforms that can cause the symbol to not center correctly. It has always been:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;ControlTemplate x:Key="SimpleMarkerSymbol_Triangle"&amp;gt;
&amp;nbsp; &amp;lt;TextBlock Text="�?�" RenderTransformOrigin="0.5,0.5" FontFamily="Arial" FontSize="{Binding Path=Symbol.Size, Converter={StaticResource multiplicationConverter}, ConverterParameter=1.5, Mode=OneWay}" Foreground="{Binding Symbol.Color}" /&amp;gt;
 &amp;lt;/ControlTemplate&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are correct that only symbols supported by REST can be serialized for printing. With the exception of TextSymbol, these are the symbols supported for printing: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/symbol.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/symbol.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348589#M8961</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Silverlight SimpleMarkerSymbol.SimpleMarkerStyle.Triangle offset from other style</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348590#M8962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have abandoned SimpleMarkerSymbols for us on client-side FeatureLayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two reasons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) the triangle shaped SimpleMarkerSymbol is definitely shifted "down and to the right" on the map,&amp;nbsp; compared to the other shapes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) SimpleMarkerSymbol does not support an outline which we need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our solution was to write an OutlineMarkerSymbol that inherits from MarkerSymbol. We used the nice xaml examples you all provide in your symbol gallery (very nice, thanks!). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately we are able to translate this custom symbol to a symbol which our printing/export solution understands (basically a simple marker symbol with outline support).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said above, our choice of marker is currently constrained by what we can print/export. We have a longer-term goal of "opening this up", so we can use snazzier symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Cory&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 13:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-simplemarkersymbol-simplemarkerstyle/m-p/348590#M8962</guid>
      <dc:creator>deleted-user-Ohz6rwd1kavx</dc:creator>
      <dc:date>2011-12-08T13:11:24Z</dc:date>
    </item>
  </channel>
</rss>

