﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions / Samples  / Google map / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 13:04:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>Thanks. your sample will be included in the next release of the SDK along with the others I posted in the last couple days. Of course, you get full credit :smooooth:</description><pubDate>Mon, 09 Oct 2006 14:35:18 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>RE: Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>[quote][b]Jeremie Desautels (10/8/2006)[/b][hr]&lt;P&gt;[code]Instance.RegisterClientScriptBlock("&amp;#119;indow.onload", "function &amp;#119;indow.onload() { getMap(); }");[/code][/quote]&lt;BR&gt;Tried several possible workarounds, but this one might do the trick.&lt;BR&gt;Will give it a try.&lt;BR&gt;Thanx.&lt;BR&gt;&lt;BR&gt;[quote][b]Jeremie Desautels (10/8/2006)[/b][hr]By the way, with your permission, I would like to include this sample you created in the next version of the SDK. Let me know if you agree.&lt;BR&gt; [/quote]&lt;BR&gt;Put me in the credit and you have my GO! :cool:&lt;BR&gt;&lt;BR&gt;side note: I was looking at Virtual Earth because Google Maps could not calculate a correct (detailed) route between locations in the Netherlands. But I it seems that on october 4 2006 an updated version of Google Maps for the Netherlands was released that fixes this:   &lt;A href="http://www.google.nl/maps"&gt;http://www.google.nl/maps&lt;/A&gt;  </description><pubDate>Mon, 09 Oct 2006 05:29:37 GMT</pubDate><dc:creator>pklingens</dc:creator></item><item><title>RE: Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>You can add the following line of code to execute the get map when the page loads:&lt;P&gt;[code]Instance.RegisterClientScriptBlock("&amp;#119;indow.onload", "function &amp;#119;indow.onload() { getMap(); }");[/code]&lt;/P&gt;&lt;P&gt;By the way, with your permission, I would like to include this sample you created in the next version of the SDK. Let me know if you agree.&lt;BR&gt; </description><pubDate>Sun, 08 Oct 2006 22:30:15 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>RE: Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>About the Virtual Earth Sample:&lt;BR&gt;&lt;BR&gt;For creating the mapcontrol I would like to call the getMap() method in the onload event of the body of the aspx page.&lt;BR&gt;(I now have to use a button to accomplish this...)&lt;BR&gt;&lt;BR&gt;It seems as if the onload property is removed by the AreaPage when the c360BaseForm is created...&lt;BR&gt;&lt;BR&gt;Why this is happening...?</description><pubDate>Tue, 03 Oct 2006 10:19:37 GMT</pubDate><dc:creator>pklingens</dc:creator></item><item><title>RE: Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>Funny, I came across something simular for Virtual Earth yesterday... So I created a sample like Jeremie's GoogleMap sample but one that uses the Virtual Earth's MapControl&lt;BR&gt;&lt;BR&gt;&lt;A href="http://dev.live.com/virtualearth/sdk/"&gt;http://dev.live.com/virtualearth/sdk/&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/a59fb16a-0d8c-493a-b293-6ff5.png"&gt;</description><pubDate>Tue, 03 Oct 2006 10:15:05 GMT</pubDate><dc:creator>pklingens</dc:creator></item><item><title>Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;The goal of this sample is to display a map of the area where an account or contact is located. Also, in the case of an order, we want to display directions to get to the delivery destination. (Please note that the starting address for the directions has be set to c360 Solutions' main office in Atlanta, but feel free to change it to your own address).&lt;/P&gt;&lt;P&gt;This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fetch data about the current account or order&lt;/LI&gt;&lt;LI&gt;Redirect the user to Google map and pass the information expected by Google in order to be able to display a map &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 1&lt;/U&gt;&lt;/STRONG&gt; – Edit ISV.config &lt;P&gt;This sample must be added as a new link on the left navigation bar of the Microsoft CRM account edit screen and the order edit screen as well. Therefore we need to edit the “account” and the “salesorder” entity sections in Microsoft CRM’s ISV.config file like so: &lt;P&gt;&lt;P&gt;[code]&amp;lt;ENTITY name="account"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;NAVBARITEM id=googleMap&lt;/P&gt;&lt;P&gt;       title="Google map"&lt;/P&gt;&lt;P&gt;       Url="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.aspx"&lt;/P&gt;&lt;P&gt;       Icon="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.jpg" /&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ENTITY name="salesorder"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;NAVBARITEM id=googleMap&lt;/P&gt;&lt;P&gt;       title="Google map"&lt;/P&gt;&lt;P&gt;       Url="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.aspx"&lt;/P&gt;&lt;P&gt;       Icon="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.jpg" /&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;[/code]&lt;/P&gt;Note: you will need to adjust the url in the above sample to match your environment. &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 2&lt;/U&gt;&lt;/STRONG&gt; – Copy files&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “GoogleMap”. In this new folder, copy the image, the ASPX page and it’s corresponding code behind file: &lt;UL&gt;&lt;LI&gt;GoogleMap.jpg&lt;/LI&gt;&lt;LI&gt;GoogleMap.aspx&lt;/LI&gt;&lt;LI&gt;GoogleMap.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/d856001a-e0d5-4a9b-820f-a0f7.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/ff0caf00-5dc9-41c9-982a-b3be.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7a0e8773-306a-4da2-ab06-bc5d.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 22:16:27 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item></channel></rss>