<?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 Centering a Graphic on a GPS coordinate in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725616#M18597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out that I need to set the OffsetX/OffsetY properties. Hardcoding the values managed to center it, but I'd much prefer to calculate the values based on the total size of the ControlTemplate I'm using. Unfortunately I can't seem to find a way to get the size of that at run time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 17:00:53 GMT</pubDate>
    <dc:creator>AlexAgranov</dc:creator>
    <dc:date>2010-10-11T17:00:53Z</dc:date>
    <item>
      <title>Centering a Graphic on a GPS coordinate</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725616#M18597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out that I need to set the OffsetX/OffsetY properties. Hardcoding the values managed to center it, but I'd much prefer to calculate the values based on the total size of the ControlTemplate I'm using. Unfortunately I can't seem to find a way to get the size of that at run time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 17:00:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725616#M18597</guid>
      <dc:creator>AlexAgranov</dc:creator>
      <dc:date>2010-10-11T17:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a Graphic on a GPS coordinate</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725617#M18598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use a custom symbol template, try and place your element so it's centered at 0,0 in it's local coordinate system regardless of size, and you won't have to muck around with offsets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 18:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725617#M18598</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-11T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a Graphic on a GPS coordinate</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725618#M18599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you use a custom symbol template, try and place your element so it's centered at 0,0 in it's local coordinate system regardless of size, and you won't have to muck around with offsets.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;More specifically what's happening is template's left top corner is placed on the GPS coordinate. I'm not sure what you mean by local coordinate system for the template relative to the map?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 20:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725618#M18599</guid>
      <dc:creator>AlexAgranov</dc:creator>
      <dc:date>2010-10-11T20:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Centering a Graphic on a GPS coordinate</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725619#M18600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I mean relative to the symbol element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ie. centering rectangle on the parent grid's 0,0 using negative margin (If root is a Canvas, use Canvas.Left/Top):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ControlTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Rectangle Margin="-10,-10,0,0" Width="20" Height="20" Fill="Green" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ControlTemplate&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 20:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/centering-a-graphic-on-a-gps-coordinate/m-p/725619#M18600</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-13T20:17:04Z</dc:date>
    </item>
  </channel>
</rss>

