Bing Developer blog</suffixText></data:PageTitle></fd:pageTitle><subtitle type="html">For all the announcements on new tools and resources and tips and tricks to help you implement Bing technologies on your projects.</subtitle><id>http://www.bing.com/community/Site_Blogs/b/developer/atom.aspx</id><link rel="alternate" type="text/html" href="http://www.bing.com/community/Site_Blogs/b/developer/default.aspx" /><link rel="self" type="application/atom+xml" href="http://www.bing.com/community/Site_Blogs/b/developer/atom.aspx" /><generator uri="http://telligent.com" version="5.5.134.12674">Community Server</generator><updated>2009-12-03T09:22:00Z</updated><entry><title>Bing Instant Answers and White Pages Discontinued/community/Site_Blogs/b/developer/archive/2011/10/11/instant-answers-and-white-pages-discontinued.aspx2011-10-11T20:17:10Z2011-10-11T20:17:10Z<p>Effective December 8, 2011, we will discontinue support for both the Instant Answers source type and for Phonebook Residential White Pages results via the Bing API version 2.0.&#160; For those of you using these source types with the Bing API, this means you will no longer receive results for Instant Answers or for Phonebook White Pages (Residential) results. </p> <p>We encourage you to continue using the many other source types available via the Bing API such as web, images, video, news, and more.&#160; For more information on using the API, a number of resources can be found <a href="http://msdn.microsoft.com/en-us/library/dd900818.aspx">here</a>.&#160; This includes implementation instructions, code examples, links to forums and other helpful documentation. We hope that these resources will assist you in the transition.</p> <p>Our team regularly evaluates our API to make sure we’re focusing on the right areas for our partners. Decommissioning source types allows us to dedicate more resources to supporting other parts of the API.</p> <p>As always, thanks for your partnership, and we hope you continue to find the Bing API valuable in powering your products.</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9659800" width="1" height="1">Mindy Zhanghttp://www.bing.com/community/members/Mindy-Zhang/default.aspxBing Scheduled Maintenance for Bing API and Management Tools on May 9th/community/Site_Blogs/b/developer/archive/2011/05/09/scheduled-maintenance-for-bing-api-and-management-tools.aspx2011-05-09T13:06:00Z2011-05-09T13:06:00Z<p>The Bing API and management tools are undergoing scheduled maintenance. This maintenance will have no impact on your current use of the Bing API. Please check back tomorrow to sign up for the API or manage your AppIDs. </p> <p>We apologize for any inconvenience this may cause. </p> <p>The Bing Team</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9650372" width="1" height="1">The Bing Teamhttp://www.bing.com/community/members/The-Bing-Team/default.aspxBing Bing.com/siteowner being shut down on April 4th, 2011/community/Site_Blogs/b/developer/archive/2011/02/04/bing-com-siteowner-being-shut-down-on-april-4th-2011.aspx2011-02-04T19:06:04Z2011-02-04T19:06:04Z<p>Gang, we've got a quick note here to alert users to an item we'll be shutting down in 60 days. </p> <p>As of April 4th, 2011 we will discontinue support for the <a target="_blank" href="http://www.bing.com/siteowner">bing.com/siteowner</a> functionality. If you continue to leverage the feature after this date (April 4th, 2011), users who attempt to query in the search box will be redirected to a 404 page. This means that you will need to move to the <a target="_blank" href="http://www.bing.com/toolbox/developers/?FORM=L8SP70">Bing API</a> in order to continue to receive web or site search results from us. We have decided to take this step for two reasons. </p> <p>First, the tool has not been getting a lot of use and while we have some very loyal customers on it, we believe we can provide you better alternatives in the future as we free up resources. </p> <p>Second, the functionality available through bing.com/siteowner can be replicated with the Bing search API and so it feels a bit redundant. </p> <p>As has become customary, we will give you a window to migrate off and ask us any questions you may have about this change. We will also provide reminders as we get closer to April 4th. Thank you so much for your support. </p> <p>The Bing Developer Team</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9644450" width="1" height="1">searchgeekhttp://www.bing.com/community/members/searchgeek/default.aspxBing Bing Product Guidelines released (Update)/community/Site_Blogs/b/developer/archive/2010/08/23/bing-product-guidelines-released.aspx2010-08-23T19:39:00Z2010-08-23T19:39:00Z<p>The <a href="http://download.microsoft.com/download/0/4/E/04E076D4-60B2-4D31-BCC7-C4805B558DBB/Bing%20product%20guidelines.pdf">Bing Product Guidelines</a>&nbsp;provides visual guidelines and recommendations to implement the branding for Bing for third parties. These guidelines can help echo the Bing product brand experience into your environment.</p> <p>We&rsquo;ve updated the&nbsp;Bing Product Guidelines&nbsp;on the Microsoft Download Center&nbsp;to include new logo and search box format and instructions on use to help you&nbsp;more easily implement a consistent Bing experience.&nbsp; Sections that were removed with this update are crossed out below.</p> <p>Topics include:</p> <ul> <li>Bing branding guidelines </li> <li>Bing searchbox guidelines </li> <li>Bing searchbox guidelines for third party (web) </li> <li>Font guidelines for UI </li> <li>Visual elements for Bing search UI </li> <li><span style="text-decoration:line-through;">Editorial style </span></li> <li><span style="text-decoration:line-through;">Approach to UI error messages</span> </li> <li><span style="text-decoration:line-through;">Overview of China Transliterated Logo </span></li> <li><span style="text-decoration:line-through;">China Transliterated Logo searchbox guidelines for third party (web)</span></li> </ul> <p><br />Please use&nbsp;these guidelines&nbsp;as a starting point for any questions you have about how to incorporate the Bing brand in your applications.</p> <p>&nbsp;</p> <p>Thanks,</p> <p>Alessandro Catorcini, Lead Program Manager, Bing API</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9542446" width="1" height="1">kmeldahlhttp://www.bing.com/community/members/kmeldahl/default.aspxBing Phasing out the Bing Search API 1.1/community/Site_Blogs/b/developer/archive/2010/08/06/phasing-out-the-bing-search-api-1-1.aspx2010-08-06T16:47:00Z2010-08-06T16:47:00Z<div><span style="font-family: 'Arial','sans-serif';"><o:p> <p class="MsoNormal"> <p class="MsoNormal"><span style="line-height: 115%; font-family: 'Arial','sans-serif'; font-size: 10pt;"><span style="mso-spacerun: yes;"></span><o:p></o:p></span></p> </p> <h3 style="margin: 0in 0in 0pt; background: white;"><b><span lang="EN" style="font-family: 'Arial','sans-serif'; color: black; font-size: 11.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;">UPDATE: </span></b></h3> <h3 style="margin: 0in 0in 0pt; background: white;"><b><span lang="EN" style="font-family: 'Arial','sans-serif'; color: black; font-size: 11.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"><o:p></o:p></span></b></h3> <h3 style="margin: 0in 0in 0pt; background: white;"><span lang="EN" style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"><em>Following </em><a href="http://www.bing.com/community/site_blogs/b/developer/archive/2010/08/06/phasing-out-the-bing-search-api-1-1.aspx"><span style="color: #0000ff;"><em>our announcement</em></span></a><em> (8/6/2010) to discontinue support to Bing API 1.1, the API 1.1 service will go offline on Monday May 2, 2011 at 11:00AM PST.&nbsp; What this means to you is that customers who have built search applications that leverage the API 1.1 will cease to return Bing search results.<o:p></o:p></em></span></h3> <h3 style="margin: 0in 0in 0pt; background: white;"><span lang="EN" style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"><o:p><em>&nbsp;</em></o:p></span></h3> <h3 style="margin: 0in 0in 0pt; background: white;"><span lang="EN" style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"><em>To continue serving Bing search results, you will need to migrate your application to Bing API 2.0.&nbsp; For migration resources and general API assistance, see the original post below.</em></span></h3> <p>Some time ago, we announced <a href="http://www.bing.com/community/blogs/developer/archive/2010/08/06/phasing-out-the-bing-search-api-1-1.aspx">Bing Search API 2.0</a>, a release which introduced a number of significant improvements (outlined below) over the older API 1.1.&nbsp; While we continued to support the older version by incrementally updating supporting documentation, today marks the final step in what has been a gradual transition to a single Bing Search API.</p> <p>As of November 1<sup>st</sup>, 2010 we will discontinue support for the Bing Search API 1.1. &nbsp;For those of you using the older API, this means that you will need to switch over to the newer API over the course of the next 3 months. To help make the switch to the new API as easy as possible, we have developed a number of resources which can be found <a href="http://msdn.microsoft.com/en-us/library/dd251056.aspx">here</a>.&nbsp; This includes implementation instructions, code examples, links to forums, and other helpful resources.</p> <p>The considerable benefits that come from moving to the newer API include:</p> <p><b>New SourceTypes</b></p> <ul type="disc"> <li><strong>RelatedSearch</strong> - view searches that provide information in which you might be interested, based on your current search</li> <li><strong>Instant Answer</strong> - get authoritative answers to questions, such as "What is 789*12?", "How many seconds are in a year?" as well as airline flight status.</li> <li><strong>MobileWeb</strong> - Get mobile Web search results - primarily Extensible Hypertext Markup Language (XHTML) or Wireless Markup Language (WML) pages relevant to the queried term.</li> <li><strong>Video</strong> - Get videos relevant to your search terms.</li> <li><strong>Translation</strong> - Translate terms or small blocks of text from one language to another</li> </ul> <p><b></b></p> <p><b>New Protocols</b></p> <p>In this version, your application does not have to adapt to a single protocol. Instead, you can choose from a number of different protocols, including:</p> <ul type="disc"> <li>JSON</li> <li>XML</li> <li>SOAP</li> </ul> <p><b></b></p> <p><b>Strong Typing</b></p> <p>In this version, data returned is strongly typed and ready to be consumed. For example, an image or a weather forecast is an object - not just a title, a URL and a description.</p> <p>The previous version had a single SearchRequest object that included all request parameters and a single SearchResponse that included all response fields. The fields in the response were populated or not based on the SourceTypes in the request.</p> <p>In this version, every SourceType has its own request and response objects. </p> <p><b>Developer portal</b></p> <p>This version unveils a new <a href="http://www.bing.com/developers">Bing Developer Center</a>, including new traffic management functionality.</p> <p><b>Unlimited traffic</b></p> <p>Version 2 offers new <a href="http://www.bing.com/developers/tou.aspx">Terms of Use</a>. Provided you comply with the stated terms, your applications can send an unlimited number of requests to the API.</p> <p>There are other benefits of this transition as well.&nbsp; The new Bing Search API introduced considerable improvements for maintenance and updates so that going forward, we can introduce feature improvements and other changes without switching API versions.&nbsp; Furthermore, we will better able to aid you in your requests for assistance as there will now be a single version to monitor and support.&nbsp;&nbsp; </p> <p>As always, if you have any questions or need any guidance on any API issues, please reach out to <a href="mailto:api_tou@microsoft.com">api_tou@microsoft.com</a>.&nbsp; </p> <p>Thanks for all your continued <a name="_GoBack"></a>support,</p> <p>Reed Shaffner</p> <p>Senior Product Manager</p> <p>Bing Developer Platform &nbsp;&nbsp;</p> <p class="MsoNormal">&nbsp;</p> </o:p></span></div> <p class="MsoNormal">&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9615494" width="1" height="1">kmeldahlhttp://www.bing.com/community/members/kmeldahl/default.aspxBing Guide to Bing Query Language Published/community/Site_Blogs/b/developer/archive/2010/06/25/guide-to-bing-query-language-published.aspx2010-06-25T19:19:00Z2010-06-25T19:19:00Z<p>Bing offers several ways to augment a basic Bing query. For the most part, we&rsquo;ve talked about using the Bing API to tailor requests. However, there is another tool that you can use in either an API request or a Bing box: Advanced Query Language. We&rsquo;ve just published an extensive list (with descriptions and examples) of the operators, or syntactical units, that comprise this language. </p> <p>For example, if you want to augment a query for &ldquo;windows&rdquo; so that the result pages are from Microsoft.com, you would enter:</p> <blockquote><strong>windows site:microsoft.com</strong></blockquote> <p>You can view &ldquo;Bing Query Language&rdquo; in one of three formats:</p> <div align="center"> <table width="40%"> <tbody> <tr> <td width="33%"><b>FORMAT</b></td> <td> <div align="left"><b>AVAILABLE FROM</b></div> </td> </tr> <tr> <td>HTML</td> <td> <div align="left"><a href="http://msdn.microsoft.com/en-us/library/ff795667.aspx">MSDN</a></div> </td> </tr> <tr> <td>PDF</td> <td> <div align="left"><a href="http://download.microsoft.com/download/4/0/B/40B434BE-610D-498E-9365-C474BE4C33C3/Bing_QL_Public.pdf">Microsoft Download Center</a></div> </td> </tr> <tr> <td>CHM</td> <td> <div align="left"><a href="http://www.bing.com/toolbox/media/p/9607860.aspx">Developer Center</a></div> </td> </tr> </tbody> </table> </div> <p>&nbsp;</p> <p><i>&mdash; Ian Whyte, Bing Developer Center</i></p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9607845" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Writing Your First Bing Map App/community/Site_Blogs/b/developer/archive/2010/06/07/writing-your-first-bing-map-app.aspx2010-06-07T14:03:00Z2010-06-07T14:03:00Z<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">With the Bing Maps Apps SDK just released, it&rsquo;s time to get started writing apps using the Bing Maps platform.<span style="mso-spacerun: yes;">&nbsp; </span>The first thing you need is something to map.<span style="mso-spacerun: yes;">&nbsp; </span>I wanted to do something a little more interesting than your typical &ldquo;Hello World!&rdquo; app, so I chose to map the locations of the planets relative to the earth.<span style="mso-spacerun: yes;">&nbsp; </span>The necessary calculations are taken care of by the CodePlex project </span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><a href="http://aaplus.codeplex.com/"><span style="font-family: 'Calibri','sans-serif'; color: blue;">AAPlus</span></a></span><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">.<span style="mso-spacerun: yes;">&nbsp; </span>To get started, download the AAPlus code from CodePlex, and compile it against the Silverlight runtime, or use the DLL included in the attached source project.<span style="mso-spacerun: yes;">&nbsp; </span>After you have that ready, you should set up your solution by following the steps in <a href="http://www.bing.com/community/blogs/maps/archive/2010/06/07/announcing-the-bing-map-app-sdk-and-3-new-bing-map-apps.aspx"><span style="color: blue;">this post</span></a>.<span style="mso-spacerun: yes;">&nbsp; </span></span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Now that you&rsquo;re set up and ready to go, let&rsquo;s get to coding!<span style="mso-spacerun: yes;">&nbsp; </span>We&rsquo;ll start by making a class that extends Microsoft.Maps.Plugins.Plugin.<span style="mso-spacerun: yes;">&nbsp; </span>The Plugin class is used to import and export functionality needed, and it also acts as the entry point for your app.<span style="mso-spacerun: yes;">&nbsp; </span>We will need to use several contracts provided by the SDK.<span style="mso-spacerun: yes;">&nbsp; </span>To get a reference to those contracts, simple create public properties on your plugin class, and decorate them with an ImportSingleAttribute, and the name of the contact to import.<span style="mso-spacerun: yes;">&nbsp; </span>For this sample, we will add the following properties to import the desired functionality.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Import the LayerManagerContract so we can add the AstronomyLayer upon activation</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 105.75pt;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">[</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportSingle</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #a31515; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">"Microsoft/LayerManagerContract"</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">, </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportLoadPolicy</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Synchronous)]</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">LayerManagerContract</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> LayerManagerContract { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Import the PushpinFactoryContract so we can add standard pushpins to the map</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">[</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportSingle</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #a31515; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">"Microsoft/PushpinFactoryContract"</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">, </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportLoadPolicy</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Synchronous)]</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">PushpinFactoryContract</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> PushpinFactoryContract { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Import the PopupContract so we can register each entity to show a popup on hover</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">[</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportSingle</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #a31515; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">"Microsoft/PopupContract"</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">, </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportLoadPolicy</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Synchronous)]</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">PopupContract</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> PopupContract { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Import the map contract so we can zoom out to world view upon activation</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">[</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportSingle</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #a31515; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">"Microsoft/MapContract"</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">, </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">ImportLoadPolicy</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Synchronous)]</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">MapContract</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> MapContract { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">These properties will automatically be set before Initialize is called.<span style="mso-spacerun: yes;">&nbsp; </span>In Initialize, we just want to set up our primary layer.<span style="mso-spacerun: yes;">&nbsp; </span>A layer is what allows you to add items to the map, and show UI in the left pane.<span style="mso-spacerun: yes;">&nbsp; </span>A plugin can have multiple layers, but it&rsquo;s more common to just have one layer per plugin, which is the case here.<span style="mso-spacerun: yes;">&nbsp; </span>Since there will only ever be one layer, we set it up in our Initialize method.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// The singleton layer that contains each of the AstronomyEntities</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">private</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyLayer</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> _layer;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Called after all the imports are populated</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">override</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">void</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Initialize()</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">base</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Initialize();</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_layer = </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyLayer</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Activate can be thought of as one of the entry points to your application. The other entry point is layer deserialization via permalinks, but I won&rsquo;t cover that in this post.<span style="mso-spacerun: yes;">&nbsp; </span>In the Activate method, we want to add our layer or bring it to the front.<span style="mso-spacerun: yes;">&nbsp; </span>This is done by using the LayerManagerContract which we previously imported.<span style="mso-spacerun: yes;">&nbsp; </span>We also set the map view using the MapContract to show the entire world.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Called when the user launches the application</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Either add the AstronomyLayer or bring it to the front, then zoom out so the entire world is visible.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">override</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">void</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Activate(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">IDictionary</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">string</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">, </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">string</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&gt; activationParameters)</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">base</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Activate(activationParameters);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">if</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> (LayerManagerContract.ContainsLayer(_layer))</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>LayerManagerContract.BringToFront(_layer);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">else</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>LayerManagerContract.AddLayer(_layer);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// The the view to show the whole world</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>MapContract.SetView(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">LocationRect</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(90, -180, -90, 180));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">We now need to provide an implementation of AstronomyLayer which will add each planet to the layer, and update their positions based on the simulated time.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Add each planet to the list of enties</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Each entity in this.Entites will be rendered by Entity.Primitive on the map.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Mercury, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Venus, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Mars, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Jupiter, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Saturn, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Uranus, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Neptune, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities.Add(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Pluto, plugin.PushpinFactoryContract));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">An entity on a layer is a point of interest, business, location, region or other item that you want to place on the map surface.<span style="mso-spacerun: yes;">&nbsp; </span>We create a custom entity class called AstronomyEntity which holds information about which planet the entity represents, and calls the AAPluss library to find the location of the planet at a given time.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Represents a planet we are tracking on the map</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">class</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> : </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Entity</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> The planet enum value</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">private</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> _ellipticalObject; </span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Creates a new AstronomyEntity</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;param name="ellipticalObject"&gt;</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">The planet to track</span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/param&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;param name="pushpinFactory"&gt;</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">The PushpinFactoryContract used to create pushpins</span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/param&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> AstronomyEntity(</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalObject</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> ellipticalObject, </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">PushpinFactoryContract</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> pushpinFactory)</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_ellipticalObject = ellipticalObject;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Create a pushpin with the first letter of the planet name in it</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Setting the primitive is what will give the entity a visual representation</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// We can use the default constructor on Location, because we just replace the location as soon as UpdateLocation is called.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Primitive = pushpinFactory.CreateStandardPushpin(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Location</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(), _ellipticalObject.ToString().Substring(0, 1));</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Set the entity's name to show in the popup</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Name = _ellipticalObject.ToString();</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Updates the location of the entity to match where the planet would be at a given julian day.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;param name="julianDay"&gt;</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">The julian day</span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/param&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">void</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> UpdateLocation(</span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">double</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> julianDay)</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">EllipticalPlanetaryDetails</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> details = </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Elliptical</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Calculate(julianDay, _ellipticalObject);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>((</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">PointPrimitive</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">)Primitive).Location = </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Location</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(details.ApparentGeocentricLatitude, details.ApparentGeocentricLongitude);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> The name of the planet</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">string</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> Name { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">private</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-spacerun: yes;">&nbsp;</span></span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">In our AstronomyEntityClass we set the Primitive to a PointPrimitive which is generated using the PushpinFactoryContract we imported.<span style="mso-spacerun: yes;">&nbsp; </span>In UpdateLocation, we set the PointPrimitive&rsquo;s location to the position of the planet at the given time.<span style="mso-spacerun: yes;">&nbsp; </span>Now we just need to call UpdateLocation to get the planets to their correct location.<span style="mso-spacerun: yes;">&nbsp; </span>We add the following line to the AstronomyLayer&rsquo;s constructor:</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">// Initialize the planet locations to their position today</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>DisplayDate = </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">DateTime</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Now;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Then add the display date property that converts the DateTime to a Julian day, and updates each AstronomyEntity&rsquo;s location.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> The current date that the planets are positioned to.</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">///</span><span style="font-family: Consolas; color: green; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: gray; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&lt;/summary&gt;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">public</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">DateTime</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> DisplayDate</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">get</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> { </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">return</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> _displayDate; }</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">set</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_displayDate = </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">value</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">DateTime</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> utcDate = _displayDate.ToUniversalTime();</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Date</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> date = </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">new</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">Date</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">(utcDate.Year, utcDate.Month, utcDate.Day, </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">true</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">double</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> julianDay = date.Julian();</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">foreach</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> (</span><span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">AstronomyEntity</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> entity </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">in</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"> </span><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">this</span><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">.Entities)</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 3;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>entity.UpdateLocation(julianDay);</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">}</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Consolas; color: black; font-size: 9.5pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: 'Times New Roman';">&nbsp;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">We now have enough code to get some pins on the map.<span style="mso-spacerun: yes;">&nbsp; </span>Go ahead and try your plugin out and you&rsquo;ll see the planets placed on the map surface near the equator!<span style="mso-spacerun: yes;">&nbsp; </span></span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;"><span style="font-family: Calibri;">I&rsquo;ve added a few more features (noted below) to the attached sample. Download it and try it out, then try extending it further or writing your own app.</span></span><a name="_GoBack"></a><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Symbol; color: black; font-size: 12pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">&middot;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 7pt; mso-fareast-font-family: Symbol;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Animating the DisplayDate so you can watch the planets follow their path over the earth</span><span style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Symbol; color: black; font-size: 12pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">&middot;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 7pt; mso-fareast-font-family: Symbol;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Showing popups over the pushpins so you can tell the difference between Mercury and Mars</span><span style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Symbol; color: black; font-size: 12pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">&middot;</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 7pt; mso-fareast-font-family: Symbol;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Showing custom UI in the left panel</span><span style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: Calibri;"><span style="color: black; font-size: 12pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri;">Ben Lemmon &ndash; Bing Maps Developer</span><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"><o:p></o:p></span></span></p> <p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Times New Roman','serif'; color: black; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';">&nbsp;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 10pt;"><o:p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></o:p></p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9604009" width="1" height="1">kmeldahlhttp://www.bing.com/community/members/kmeldahl/default.aspxBing Bing404 plugin for WordPress/community/Site_Blogs/b/developer/archive/2010/06/03/bing404-plugin-for-wordpress.aspx2010-06-03T22:55:00Z2010-06-03T22:55:00Z<p>Announcing the Bing404 plugin for WordPress -- a great new plugin that returns a page of intelligent search results in place&nbsp;of the unhelpful WordPress&nbsp;404 error page by using keywords extracted from the dead URL that otherwise would have resulted in a dreaded "Page Not Found" error. The plugin is part of the Bing Search Library for PHP project and was created in conjunction with PHP guru <a target="_blank" href="http://blog.calevans.com/epk/" title="http://blog.calevans.com/epk/">Cal Evans</a>, who has posted a <a target="_blank" href="http://www.phparch.com/2010/06/04/wordpress-404-plugin-built-on-bing-wrapper/" title="Bing404 WordPress plugin tutorial by Cal Evans">tutorial and details about the plugin on php | architect</a>.</p> <p>Simply brilliant! And installation is a breeze:</p> <ol> <li><a target="_blank" href="http://wordpress.org/extend/plugins/bing-404/" title="Download the Bing404 plugin from WordPress">Download the Bing404 plugin from WordPress</a></li> <li>Upload the plugin to your blog</li> <li>Activate the plugin</li> <li>Insert your AppID*</li> </ol> <p>&nbsp;</p> <p>Additional&nbsp;information:</p> <ul> <li>* <a target="_blank" href="http://www.bing.com/developers/appids.aspx" title="Create and App ID">Create an AppID</a> if you do not yet have one (Windows Live ID required)</li> <li><a href="http://www.bing.com/toolbox/developers/" title="Learn more about the Bing API">Learn more about the Bing API</a></li> <li><a href="http://bingphp.codeplex.com/" title="Bing Search Library for PHP">Bing Search Library for PHP</a></li> </ul> <p>&nbsp;</p> <p>Thank you for your continued support.</p> <p><i>-- George Thomas Jr., Bing Developer Center</i></p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9603446" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Bing Search Library for PHP/community/Site_Blogs/b/developer/archive/2010/06/01/bing-search-library-for-php.aspx2010-06-01T17:44:00Z2010-06-01T17:44:00Z<p>Announcing the new <a href="http://bingphp.codeplex.com/">Bing Search Library for PHP</a>, created&nbsp;in conjunction&nbsp;with&nbsp;<a target="_blank" href="http://blog.calevans.com/epk/" title="PHP guru Cal Evans">PHP guru Cal Evans</a>, which is available under an open source BSD license.&nbsp;Not only did Cal design and&nbsp;write the code, but he also posted a <a target="_blank" href="http://blog.calevans.com/2010/06/01/bing-search-api-wrapper-for-php/" title="sample Bing Search Library PHP code">tutorial&nbsp;that includes sample code for PHP&nbsp;developers</a>. </p> <p>The Bing Search Library for PHP provides a simple way to submit queries to and retrieve results from the Bing Engine.</p> <p>Visit <a target="_blank" href="http://bingphp.codeplex.com" title="http://bingphp.codeplex.com">http://bingphp.codeplex.com</a> for&nbsp;more info about the Bing Search Library for PHP, documentation, to give feedback, ask questions and make feature requests.</p> <p>Thank you for your continued support.</p> <p><i>-- George Thomas Jr., Bing Developer Center</i></p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9603204" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Comment spam policy update for Bing blogs & forums/community/Site_Blogs/b/developer/archive/2010/05/19/comment-spam-policy-update-for-bing-blogs-amp-forums.aspx2010-05-19T19:42:00Z2010-05-19T19:42:00Z<p>In our continued effort to improve the community experience for all users, we are updating our spam policy, which will take effect May 24, 2010.</p> <p>Please review Rick DeJarnette's blog post about the updates, posted to the Webmaster Blog:</p> <ul> <li><a href="http://www.bing.com/community/blogs/webmaster/archive/2010/05/19/comment-spam-policy-update-for-bing-blogs-amp-forums.aspx"><span style="color: #663399; font-size: small;">Comment spam policy update for Bing blogs &amp; forums</span></a></li> </ul> <p>&nbsp;</p> <p>Thank you for your continued support.</p> <p><i>-- George Thomas Jr., Bing Developer Center</i></p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9601355" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Add a Bing Search Box to your site in 3 easy steps/community/Site_Blogs/b/developer/archive/2010/03/22/add-a-bing-search-box-to-your-site-in-3-easy-steps.aspx2010-03-23T01:36:00Z2010-03-23T01:36:00Z<p>Got Bing on your site yet? If not, there's an online tool that makes adding a Bing search box to your site nice and easy. </p> <p>Simply go to <a target="_blank" href="http://www.bing.com/siteowner" title="Add Bing Search to your site">http://www.bing.com/siteowner</a> for the 3-step process to add an advanced search box that you can customize, so users can search your site or search the Web from your site..</p> <p>If you prefer working directly with the code, read on.</p> <p>To let your visitors search the Web from your website, add the following code to your webpage:</p> <!-- Web search from Bing--> <div style="font-family: Courier New;"> <p>&lt;form method="get" action="http://www.bing.com/search"&gt;<br />&lt;input type="hidden" name="cp" value="<i>CODE PAGE USED BY YOUR HTML PAGE</i>" /&gt;<br />&lt;input type="hidden" name="FORM" value="FREEWS" /&gt;<br />&nbsp;&lt;table bgcolor="#FFFFFF"&gt;<br />&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp; &lt;td&gt;<br />&nbsp;&nbsp;&nbsp; &lt;a href="http://www.bing.com/"&gt;<br />&nbsp;&nbsp;&nbsp; &lt;img src="http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png" border="0" ALT="bing" /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/a&gt;<br />&nbsp;&nbsp; &lt;/td&gt;<br />&nbsp;&nbsp; &lt;td&gt;<br />&nbsp;&nbsp;&nbsp; &lt;input type="text" name="q" size="30" /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;input type="submit" value="Search Web" /&gt;<br />&nbsp;&nbsp; &lt;/td&gt;<br />&nbsp; &lt;/tr&gt;<br />&nbsp;&lt;/table&gt;<br />&lt;/form&gt; </p> </div> <!-- Web Search from Bing --> <p><b>Note:</b> replace "CODE PAGE USED BY YOUR HTML PAGE" with the code page number of the language your website is written in. For example, if your website is written in a western European-based (also known as Latin 1) language, such as French, English, or German, replace this instruction with the number 1252:</p> <p>&nbsp;&nbsp;&nbsp;&nbsp; value="1252"</p> <p>For a list of code-page values for all languages, see the <a target="_blank" href="http://g.live.com/0HE_TRACKSTAR_ENUS9/91008">Code pages supported by Windows</a> webpage.</p> <p>To let your visitors search your website, add the following code to your page(s):</p> <div style="font-family: Courier New;"><!-- Site search from Bing-->&lt;form method="get" action="http://www.bing.com/search"&gt;<br />&lt;input type="hidden" name="cp" value="<i>CODE PAGE USED BY YOUR HTML PAGE</i>" /&gt;<br />&lt;input type="hidden" name="FORM" value="FREESS" /&gt;<br />&nbsp;&lt;table bgcolor="#FFFFFF"&gt;<br />&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp; &lt;td&gt;<br />&nbsp;&nbsp;&nbsp; &lt;a href="http://www.bing.com/"&gt;<br />&nbsp;&nbsp;&nbsp; &lt;img src="http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png" border="0" ALT="bing" /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/a&gt;<br />&nbsp;&nbsp; &lt;/td&gt;<br />&nbsp;&nbsp; &lt;td&gt;<br />&nbsp;&nbsp;&nbsp; &lt;input type="text" name="q" size="30" /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;input type="submit" value="Search Site" /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="q1" value="site:<i>YOUR DOMAIN NAME GOES HERE</i>" /&gt;<br />&nbsp;&nbsp; &lt;/td&gt;<br />&nbsp; &lt;/tr&gt;<br />&nbsp;&lt;/table&gt;<br />&lt;/form&gt;<br /></div> <!-- Site Search from Bing --> <p>&nbsp;</p> <p>Follow the same instructions from the first snippet to locate your Code and also don't forget to substitute your domain name where indicated. </p> <p>Within minutes you can enjoy the&nbsp;power of Bing Search directly on your site.</p> <p>&nbsp;<i>-- George Thomas Jr., Bing Developer Center</i></p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9591240" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Bing API, Version 2 documentation available as .pdf/community/Site_Blogs/b/developer/archive/2010/03/12/bing-api-version-2-documentation-available-for-download.aspx2010-03-12T18:24:00Z2010-03-12T18:24:00Z<p>You&rsquo;ve said you&rsquo;d like us to expand the range of our portable documentation beyond the current CHM offering. We&rsquo;ve heard you!</p> <p>Now, everything you ever wanted to know about the Bing Application Programming Interface (API), Version 2, is conveniently available in a single download. Get an overview, survey, and detailed information for each important area of the API: </p> <ul> <li>What the API does, and what it does that it did not do before.</li> <li>Survey information for protocols, SourceTypes, and properties.</li> <li>Detailed samples demonstrating all of the above, including code samples.</li> </ul> <p>&nbsp;</p> <p>You can download the documentation as a&nbsp;.pdf or a smaller .zip file:</p> <blockquote><a target="_blank" href="http://download.microsoft.com/download/3/1/6/316E0612-33B4-4346-9AE3-A74511AE2536/BingAPI.pdf">Download the .pdf (5.4 MB)</a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; or&nbsp; -&nbsp;<br /><a target="_blank" href="http://download.microsoft.com/download/3/1/6/316E0612-33B4-4346-9AE3-A74511AE2536/BingAPI.zip">Download the .zip (1.9 MB)</a></blockquote> <p>If you are new to Bing, version 2 of the API enables developers to build applications that can: </p> <ul> <li>Retrieve information from the Internet.</li> <li>Monetize an application with advertisements.</li> <li>Improve and enhance search requests and results.</li> <li>Find location-specific information.</li> <li>Translate terms and blocks of text.</li> </ul> <p>&nbsp;</p> <p>Check out the document's Getting Started section, or if you are an advanced developer you can go straight to the code samples. The document also provides links to online resources.</p> <p>Get the documentation and learn what&nbsp;all you can do with the API to engage your customers and monetize your applications.</p> <p><i>-- George Thomas Jr., Bing Developer Center</i></p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9588930" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing SourceType code samples on MSDN/community/Site_Blogs/b/developer/archive/2010/02/08/sourcetype-code-samples-on-msdn.aspx2010-02-08T21:38:00Z2010-02-08T21:38:00Z<p>Whether you are new to the Bing API or have been working with it for some time, you may not be aware of the <a target="_self" href="http://msdn.microsoft.com/en-us/library/dd251066.aspx">SourceType code samples available on the Microsoft Developer Network</a>. A SourceType is a source of information accessible to the API, and you can include multiple SourceTypes in a single request, which is preferable to creating multiple requests.</p> <p>Specifically, code samples are available for:</p> <ul> <li>Ad SourceType (Bing, Version 2.0)</li> <li>Image SourceType (Bing, Version 2.0)</li> <li>InstantAnswer SourceType (Bing, Version 2.0)</li> <li>MobileWeb SourceType (Bing, Version 2.1) </li> <li>News SourceType (Bing, Version 2.0) </li> <li>Phonebook SourceType (Bing, Version 2.0) </li> <li>RelatedSearch SourceType (Bing, Version 2.0)</li> <li>Spell SourceType (Bing, Version 2.0) </li> <li>Translation SourceType (Bing, Version 2.2)</li> <li>Video SourceType (Bing, Version 2.x)</li> <li>Web SourceType (Bing, Version 2)</li> </ul> <p>&nbsp;</p> <p>The code samples are available for the following protocols:</p> <ul> <li>JSON</li> <li>XML</li> <li>SOAP</li> </ul> <p>&nbsp;</p> <p>Visit <a href="http://www.bing.com/toolbox/developers/">http://www.bing.com/toolbox/developers/</a>&nbsp;for a variety of information about the API, including how to get started using the Bing API.</p> <p>--George, Bing Toolbox team</p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9583157" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Bing Developer FAQs available for download/community/Site_Blogs/b/developer/archive/2010/01/05/bing-developer-faqs-available-for-download.aspx2010-01-05T19:12:00Z2010-01-05T19:12:00Z<p>Got questions about the API, SourceTypes, working with PHP? The answers to these and other Bing developer "frequently asked questions" now are available in a single document:</p> <ul> <li>&nbsp;<a target="_blank" href="http://download.microsoft.com/download/1/A/2/1A24833E-E774-4D27-9BA0-94BA077BB84E/DeveloperFAQs.pdf" title="Bing Developer FAQs">Download the Bing Developer FAQs now</a> (512 KB .pdf)</li> </ul> <p>&nbsp;</p> <p>These are the same FAQs that have always been available in the&nbsp;&nbsp;<a href="http://www.bing.com/toolbox/support/faqs.aspx" title="Bing Toolbox support FAQs">Bing Toolbox support center</a>. We just wanted to provide the FAQs in a single, indexed&nbsp;document as a convenient alternative to searching online. </p> <p>If you have questions or comments, please post them to the <a target="_self" href="http://www.bing.com/community/forums/default.aspx?GroupID=12" title="Bing Developer Forum">Developer forum</a>. The forum also is a good&nbsp;source for help and advice from other developers.</p> <p>&nbsp;</p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9574042" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspxBing Webcast: See What's New with Bing Maps/community/Site_Blogs/b/developer/archive/2009/12/03/webcast-see-what-s-new-with-bing-maps.aspx2009-12-03T17:22:00Z2009-12-03T17:22:00Z<p>Join Bing Maps technical evangelist Chris Pendleton to learn about the latest innovations in the Bing Maps Platform that can help you take your Web mapping solution to the next level.&nbsp; Hear about Deep Zoom and multimedia integration possible in the new Silverlight Control and see how the latest release allows developers to show data in more innovative, powerful, and faster ways.&nbsp; Attend this webcast to stay at the forefront of mapping innovations with Bing Maps.</p> <p><strong>Date: Thursday, December 10, 2009<br />Time: 10 A.M. Pacific Standard Time</strong></p> <p><a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032432830&amp;EventCategory=4&amp;culture=en-US&amp;CountryCode=US">Register today</a> to attend this webcast.</p> <p>The rich imagery, quality geospatial data, and leading-edge technology of Bing Maps is already being used by thousands of organizations, governments, and developers worldwide. Choose from a robust set of APIs to build innovative applications that allow you to better display data, excite end users, and improve business insight.</p> <p>Learn more: <a href="http://www.microsoft.com/maps">http://www.microsoft.com/maps</a></p><div style="clear:both;"></div><img src="http://www.bing.com/community/aggbug.aspx?PostID=9565682" width="1" height="1">georgehttp://www.bing.com/community/members/george/default.aspx