<?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: How do I Add pushpins and Polygon's from SQL Server? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124096#M3101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked into this blog post? &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can use WCF service to get geometries from your SQL Server. Then it would be as simple as creating Graphics, setting their Geometry (Polygon or MapPoint), applying appropriate symbol (Fill or Marker), and adding them to your GraphicsLayer. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 20:30:09 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-04-19T20:30:09Z</dc:date>
    <item>
      <title>How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124095#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morning all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I add Pushpins to the Graphics layer from an SQL database?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 12:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124095#M3100</guid>
      <dc:creator>BrianCook</dc:creator>
      <dc:date>2011-04-19T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124096#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked into this blog post? &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can use WCF service to get geometries from your SQL Server. Then it would be as simple as creating Graphics, setting their Geometry (Polygon or MapPoint), applying appropriate symbol (Fill or Marker), and adding them to your GraphicsLayer. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 20:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124096#M3101</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-19T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124097#M3102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I have a WCF Service, just was not sure how ESRI tag is supposed to look like to pull it from the DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Bing Maps it would look like this;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;m:Pushpin m:MapLayer.Position="{Binding Location}"&amp;nbsp; Background="Blue"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i guess I should have asked; How do I do the above in ESRI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you looked into this blog post? &lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think you can use WCF service to get geometries from your SQL Server. Then it would be as simple as creating Graphics, setting their Geometry (Polygon or MapPoint), applying appropriate symbol (Fill or Marker), and adding them to your GraphicsLayer. &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphicsXAML&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 15:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124097#M3102</guid>
      <dc:creator>BrianCook</dc:creator>
      <dc:date>2011-04-20T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124098#M3103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a pushpin image, you can create a PictureMarkerSymbol. You can download the SDK to get this image. This will be your Graphic.Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:PictureMarkerSymbol x:Key="PinPictureMarkerSymbol" OffsetX="11" OffsetY="39" Source="/Assets/images/i_pushpin.png" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you have already defined a map with GraphicsLayer, a push pin symbol and have retrieved the map coordinates (mp) from SQL Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
GraphicsLayer l = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
Graphic g = new Graphic()
{
 Geometry = new MapPoint(mp.X, mp.Y, MyMap.SpatialReference),
 Symbol = this.LayoutRoot.Resources["PinPictureMarkerSymbol"] as Symbol
};
l.Graphics.Add(g);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124098#M3103</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124099#M3104</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;Placing the symbol on the XAML I got. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you have a pushpin image, you can create a PictureMarkerSymbol. You can download the SDK to get this image. This will be your Graphic.Symbol.&lt;BR /&gt;&amp;lt;esri:PictureMarkerSymbol x:Key="PinPictureMarkerSymbol" OffsetX="11" OffsetY="39" Source="/Assets/images/i_pushpin.png" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Assuming you have already defined a map with GraphicsLayer, a push pin symbol and have retrieved the map coordinates (mp) from SQL Server.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
GraphicsLayer l = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
Graphic g = new Graphic()
{
 Geometry = new MapPoint(mp.X, mp.Y, MyMap.SpatialReference),
 Symbol = this.LayoutRoot.Resources["PinPictureMarkerSymbol"] as Symbol
};
l.Graphics.Add(g);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How is the code portion reading/getting the positions from my DataService?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124099#M3104</guid>
      <dc:creator>BrianCook</dc:creator>
      <dc:date>2021-12-11T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Add pushpins and Polygon's from SQL Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124100#M3105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the code-snippet, mp is the MapPoint retrieved from your DataService. This defines the location of the push pin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 19:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-add-pushpins-and-polygon-s-from-sql/m-p/124100#M3105</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-21T19:23:22Z</dc:date>
    </item>
  </channel>
</rss>

