<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Simplovation Blog</title>
    <description>Company News and Support Articles</description>
    <link>http://blog.simplovation.com/blog/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>BlogEngine.NET 1.4.5.0</generator>
    <language>en-US</language>
    <blogChannel:blogRoll>http://blog.simplovation.com/blog/opml.axd</blogChannel:blogRoll>
    <blogChannel:blink>http://www.dotnetblogengine.net/syndication.axd</blogChannel:blink>
    <dc:creator>Simplovation LLC</dc:creator>
    <dc:title>Simplovation Blog</dc:title>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/simplovation" type="application/rss+xml" /><feedburner:emailServiceId>simplovation</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
      <title>Use AddCustomLayer with Web.Maps.VE v3.0 To Add "Custom" Pushpins</title>
      <description>&lt;p&gt;
The &amp;quot;VEMap.AddCustomLayer&amp;quot; method in the Bing Maps JavaScript Map Control can be used to add a DIV element to the Map, and have that same DIV element scroll/pan around the Map automatically. Even though Web.Maps.VE doesn&amp;#39;t support using the &amp;quot;AddCustomLayer&amp;quot; method from within server-side code, you can still use a little bit of JavaScript on your page to hook into Web.Maps.VE to add any Custom Layers you need.
&lt;/p&gt;
&lt;p&gt;
I&amp;#39;ve had a few requests for sample code on how to use the &amp;quot;VEMap.AddCustomLayer&amp;quot; method with Web.Maps.VE, so here&amp;#39;s a full example that adds a custom layer, and a couple &amp;quot;custom&amp;quot; pushpins. Just copy the below code into an &amp;quot;.aspx&amp;quot; page and hit Run. 
&lt;/p&gt;
&lt;div class="code"&gt;&lt;p&gt;
&amp;lt;asp:ScriptManager runat=&amp;quot;server&amp;quot; ID=&amp;quot;sm&amp;quot;&amp;gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Simplovation:Map runat=&amp;quot;server&amp;quot; ID=&amp;quot;Map1&amp;quot; OnClientMapLoaded=&amp;quot;Map1_ClientMapLoaded&amp;quot; Width=&amp;quot;800&amp;quot;&amp;gt;&amp;lt;/Simplovation:Map&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;myCustomLayer&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var myCustomLayer = &lt;span class="kwrd"&gt;null&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var customPoints = []; &lt;span class="rem"&gt;// same as &amp;quot;new Array()&amp;quot;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var previousZoom = &lt;span class="kwrd"&gt;null&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pinImage = &amp;#39;http:&lt;span class="rem"&gt;//dev.virtualearth.net/mapcontrol/v6.2/i/bin/6.2.2008082210001.41/pins/poi_usergenerated.gif&amp;#39;;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pinXOffset = -25 / 2; &lt;span class="rem"&gt;//width of pushpin image divided by 2&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pinYOffset = -30;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;//height of pushpin image since we want bottom point of image to point to LatLong&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// The &amp;quot;OnClientMapLoaded&amp;quot; Event is fired when the Map is finished loading on the page&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function Map1_ClientMapLoaded(sender) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// sender = The Client-Side Web.Maps.VE object that raised the event&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Add some custom pushpin points to the custom layer&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customPoints.push(sender.GetCenter());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customPoints.push(&lt;span class="kwrd"&gt;new&lt;/span&gt; VELatLong(47.6357835908649, -122.376708984375)); &lt;span class="rem"&gt;// Seattle&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customPoints.push(&lt;span class="kwrd"&gt;new&lt;/span&gt; VELatLong(51.5087424588033, -0.175781249999995)); &lt;span class="rem"&gt;// London&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RenderCustomPoints();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Attach Event Handler to Redraw Custom Points when needed&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sender.AttachEvent(&amp;quot;onviewchange&amp;quot;, Map1_RedrawEventHandler);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sender.AttachEvent(&amp;quot;onendzoom&amp;quot;, Map1_RedrawEventHandler);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sender.AttachEvent(&amp;quot;onobliquechange&amp;quot;, Map1_RedrawEventHandler);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function Map1_RedrawEventHandler(sender, e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var currentZoom = $find(&amp;quot;&amp;lt;%=Map1.ClientID %&amp;gt;&amp;quot;).GetZoomLevel();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwrd"&gt;if&lt;/span&gt; (e.eventName !== &amp;quot;onviewchange&amp;quot; || previousZoom != currentZoom) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previousZoom = currentZoom;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RenderCustomPoints();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function RenderCustomPoints() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeCustomLayer();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = $find(&amp;quot;&amp;lt;%=Map1.ClientID %&amp;gt;&amp;quot;); &lt;span class="rem"&gt;// Get reference to the Web.Maps.VE Client-Side Object&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var s = []; &lt;span class="rem"&gt;// same as &amp;quot;new Array()&amp;quot;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixel;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Loop through all custom points and create IMG tags&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwrd"&gt;for&lt;/span&gt; (var i = 0; i &amp;lt; customPoints.length; i++) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Figure out the Pixel coordinate that matches the custom point lat/long&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixel = map.LatLongToPixel(customPoints[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// create the IMG tag&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.push(&amp;quot;&amp;lt;img src=&amp;#39;&amp;quot; + pinImage + &amp;quot;&amp;#39; style=&amp;#39;position:absolute; left: &amp;quot; + (pixel.x + pinXOffset) + &amp;quot;px; top: &amp;quot; + (pixel.y + pinYOffset) + &amp;quot;px;&amp;#39; /&amp;gt;&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Add all the IMG tags to the Custom Layer DIV&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer.innerHTML = s.join(&amp;#39;&amp;#39;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function InitializeCustomLayer() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwrd"&gt;if&lt;/span&gt; (myCustomLayer === &lt;span class="kwrd"&gt;null&lt;/span&gt;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;// Add Custom Layer to Map&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer = document.createElement(&amp;quot;div&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer.style.position = &amp;quot;absolute&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer.style.top = &amp;quot;0px&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer.style.left = &amp;quot;0px&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCustomLayer.style.zIndex = 1000;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $find(&amp;quot;&amp;lt;%=Map1.ClientID %&amp;gt;&amp;quot;).AddCustomLayer(myCustomLayer);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;lt;/script&amp;gt; 
&lt;/p&gt;
&lt;/div&gt;&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;
This is yet again one of the many ways that you can use JavaScript to enhance the already powerful Web.Maps.VE control to customize it to fit the exact needs of your application.
&lt;/p&gt;
&lt;p&gt;
If you have any questions about using Web.Maps.VE, please post them to the &lt;a href="http://simplovation.com/forums"&gt;Support Forums&lt;/a&gt;.
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/7WGJniKJEyA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/7WGJniKJEyA/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/Use-AddCustomLayer-with-WebMapsVE-v3-To-Add-Custom-Pushpins.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=f8b79106-5662-4a73-88c9-f098c17fe1de</guid>
      <pubDate>Fri, 16 Oct 2009 06:55:00 -0500</pubDate>
      <category>Tutorials</category>
      <category>Web.Maps.VE v3.0</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=f8b79106-5662-4a73-88c9-f098c17fe1de</pingback:target>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=f8b79106-5662-4a73-88c9-f098c17fe1de</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/Use-AddCustomLayer-with-WebMapsVE-v3-To-Add-Custom-Pushpins.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=f8b79106-5662-4a73-88c9-f098c17fe1de</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=f8b79106-5662-4a73-88c9-f098c17fe1de</feedburner:origLink></item>
    <item>
      <title>Web.Maps.VE v3.0 Released!</title>
      <description>&lt;p&gt;
Today we are proud to announce that we have just released Web.Maps.VE v3.0!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://simplovation.com/download/"&gt;Download FREE Edition!&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
One of the most notable things about this new version release is that it&amp;#39;s completely FREE to use for Non-Commercial purposes. 
&lt;/p&gt;
&lt;p&gt;
There are a few new things in this latest release, but the most significant are the following performance updates:
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt; Microsoft CDN (Content Delivery Network) Support Added. This helps improve the Bing Maps content delivery speed by up to 82%&lt;/li&gt;
	&lt;li&gt;JavaScript Performance Optimizations. All the JavaScript code internally within the control has been optimized to increase the overall speed of the Web.Maps.VE Map controls functionality.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;br /&gt;
Check out the following link to see what has all been included in this release:&lt;br /&gt;
&lt;a href="https://simplovation.com/page/webmapsve30/roadmap.aspx"&gt;https://simplovation.com/page/webmapsve30/roadmap.aspx&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Also, this new version release is a completely FREE upgrade to all existing customers who have already purchased Web.Maps.VE v2.0. If you have previously purchased v2.0, then there is nothing required to obtain your v3.0 license other than going to the &amp;quot;&lt;a href="http://simplovation.com/mylicenses/"&gt;My Licenses&lt;/a&gt;&amp;quot; page to download the DLL and License Activation File. If for some reason you have trouble obtaining your Free Upgrade to v3.0, please let us know and we&amp;#39;ll get it activated as soon as possible.&lt;br /&gt;
&lt;br /&gt;
Thank you for your continued support in Web.Maps.VE and Simplovation!&lt;br /&gt;
&lt;br /&gt;
Chris Pietschmann&lt;br /&gt;
Owner, Simplovation LLC&lt;br /&gt;
Microsoft MVP - Windows Live Platform&lt;br /&gt;
&lt;a href="http://simplovation.com"&gt;
http://simplovation.com&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://pietschsoft.com" target="_blank"&gt;http://pietschsoft.com&lt;/a&gt;
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/n9D67Kkt4WE" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/n9D67Kkt4WE/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/WebMapsVE-v30-Released.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=4d0fba12-231f-4cc3-bb88-286ec03cdefc</guid>
      <pubDate>Wed, 26 Aug 2009 18:46:00 -0500</pubDate>
      <category>Support</category>
      <category>Web.Maps.VE v3.0</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=4d0fba12-231f-4cc3-bb88-286ec03cdefc</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=4d0fba12-231f-4cc3-bb88-286ec03cdefc</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/WebMapsVE-v30-Released.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=4d0fba12-231f-4cc3-bb88-286ec03cdefc</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=4d0fba12-231f-4cc3-bb88-286ec03cdefc</feedburner:origLink></item>
    <item>
      <title>Web.Maps.VE v2.0 with AjaxControlToolkit ModalPopup Extender Demo</title>
      <description>&lt;p&gt;
Since both &lt;a href="http://simplovation.com/page/webmapsve20.aspx"&gt;Web.Maps.VE v2.0&lt;/a&gt; and the &lt;a href="http://ajaxcontroltoolkit.codeplex.com/"&gt;AjaxControlToolkit&lt;/a&gt; are both built on top of ASP.NET AJAX, they compliment each other very well when used together to easily create some very dynamic user experiences. One of the requests we&amp;#39;ve gotten a few times is to give an example of how to show a Popup over the Map when a user clicks on a specific pushpin. This example demonstrates just such an example using both Web.Maps.VE v2.0 and the AjaxControlToolkit&amp;#39;s ModalPopupExtender control.
&lt;/p&gt;
&lt;p&gt;
Download Source Code: &lt;a href="http://blog.simplovation.com/blog/file.axd?file=2009%2f8%2fWebMapsVE_2.0_PopupWindowDemo.zip"&gt;WebMapsVE_2.0_PopupWindowDemo.zip (753.58 kb)&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://blog.simplovation.com/blog/image.axd?picture=2009%2f8%2fWebMapsVE_2.0_PopupWindowDemo001.png" alt="Web.Maps.EV v2.0 with AjaxControlToolkit ModalPopup Demo" /&gt;
&lt;/p&gt;
&lt;p&gt;
This demo website also allows you to easily manipulate the Pushpins/Shapes on the Map in the following ways:
&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Left Click an Existing Pushpin to Edit it&amp;#39;s Title and Description using a Popup Dialog&lt;br /&gt;
	&lt;/li&gt;
	&lt;li&gt;Left Click to Add a New Pushpin and enter the Pushpins Title and Description using a Popup Dialog&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;Hold the Control (Ctrl) Key while Left Clicking on an Existing Pushpin to Delete it from the Map&lt;/li&gt;
&lt;/ol&gt;
The total source code for this example is pretty short, and it demonstrates how to perform the above mentioned actions all from within Server-Side .NET code. There is actually No JavaScript written to wire everything up with this example.&lt;br /&gt;
&lt;br /&gt;
Also, once you download this demo website, you&amp;#39;ll need to do the following 2 things before you can Hit Run within Visual Studio:&lt;br /&gt;
&lt;ol&gt;
	&lt;li&gt;Download Web.Maps.VE v2.0 from &lt;a href="http://simplovation.com/download"&gt;http://simplovation.com/download&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Copy the &amp;quot;Simplovation.Web.Maps.VE.dll&amp;quot; file into the &amp;quot;Bin&amp;quot;&lt;br /&gt;
	folder within this demo website.&lt;br /&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
&lt;a href="http://blog.simplovation.com/blog/file.axd?file=2009%2f8%2fWebMapsVE_2.0_PopupWindowDemo.zip"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/7bE4DfcHH-8" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/7bE4DfcHH-8/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/WebMapsVE-2-AjaxControlToolkit-ModalPopup-Extender-Demo.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=2360a9ab-48e5-410f-a2b4-195fa501f1ea</guid>
      <pubDate>Mon, 03 Aug 2009 13:06:00 -0500</pubDate>
      <category>Support</category>
      <category>Web.Maps.VE v2.0</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=2360a9ab-48e5-410f-a2b4-195fa501f1ea</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=2360a9ab-48e5-410f-a2b4-195fa501f1ea</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/WebMapsVE-2-AjaxControlToolkit-ModalPopup-Extender-Demo.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=2360a9ab-48e5-410f-a2b4-195fa501f1ea</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=2360a9ab-48e5-410f-a2b4-195fa501f1ea</feedburner:origLink></item>
    <item>
      <title>Simplovation Forums Updated to Use jHtmlArea</title>
      <description>We just updated the &lt;a href="https://simplovation.com/forums" title="Simplovation Support Forums"&gt;Simplovation Support Forums&lt;/a&gt; to use the &lt;a href="http://jhtmlarea.codeplex.com" title="jHtmlArea - HTML WYSIWYG Editor for jQuery"&gt;jHtmlArea HTML WYSIWYG Editor&lt;/a&gt; instead of FreeTextBox for posting new threads and replies. The jHtmlArea editor is written on top of jQuery and is a really lightweight HTML WYSIWYG editor that turns any HTML TextArea into a nice HTML WYSIWYG Editor with only one line of code.&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/jjiXI043sbU" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/jjiXI043sbU/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/Simplovation-Forums-Updated-to-Use-jHtmlArea.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=b84e3eb8-6a5f-4ad6-941f-8e84497ab4cd</guid>
      <pubDate>Tue, 28 Jul 2009 16:34:00 -0500</pubDate>
      <category>Support</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=b84e3eb8-6a5f-4ad6-941f-8e84497ab4cd</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=b84e3eb8-6a5f-4ad6-941f-8e84497ab4cd</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/Simplovation-Forums-Updated-to-Use-jHtmlArea.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=b84e3eb8-6a5f-4ad6-941f-8e84497ab4cd</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=b84e3eb8-6a5f-4ad6-941f-8e84497ab4cd</feedburner:origLink></item>
    <item>
      <title>Bing Maps for Enterprise and Web.Maps.VE ASP.NET AJAX Virtual Earth Server Control</title>
      <description>&lt;p&gt;
&lt;img src="http://blog.simplovation.com/blog/image.axd?picture=2009%2f5%2fBing.png" alt="Bing" title="Bing" align="right" /&gt;Yesterday, Microsoft announced that its Live Search, Live Search Maps and Virtual Earth products will be rebranded to be under the &amp;quot;Bing&amp;quot; product name / branding. Live Search Maps will now be called Bing Maps, and Microsoft Virtual Earth will now be called &amp;quot;Bing Maps for Enterprise.&amp;quot;
&lt;/p&gt;
&lt;h3&gt;How does this relate to Simplovation and Web.Maps.VE?&lt;/h3&gt;
&lt;p&gt;
Simply put, the transition from &amp;quot;Virtual Earth&amp;quot; to &amp;quot;Bing Maps for Enterprise&amp;quot; will be seamless. You will not need to download any updates from us to keep your maps working after the branding has changed. The Bing Maps for Enteprise JavaScript API will be downloaded from the existing URL that it is toda; the only difference is they will be changing the logo displayed on the map from &amp;quot;Virtual Earth&amp;quot; to say &amp;quot;Bing Maps&amp;quot; or &amp;quot;Bing Maps for Enterprise&amp;quot;.
&lt;/p&gt;
&lt;p&gt;
Also, we will not be making any breaking changes to Web.Maps.VE like changing the namespaces or product name. Web.Maps.VE v1.0 and v2.0 will remain &amp;quot;Web.Maps.VE&amp;quot; and the namespace will remain &amp;quot;Simplovation.Web.Maps.VE.&amp;quot; 
&lt;/p&gt;
&lt;p&gt;
More Information:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blogs.msdn.com/virtualearth/archive/2009/05/28/rebranding-microsoft-virtual-earth-to.aspx"&gt;Rebranding Microsoft Virtual Earth To...&lt;/a&gt; 
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/Xvva2T0Fkmc" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/Xvva2T0Fkmc/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/Bing-Maps-for-Enterprise-and-WebMapsVE-ASPNET-AJAX-Virtual-Earth-Server-Control.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=0c9ed41f-50e3-45bc-b904-3cefac734ef3</guid>
      <pubDate>Fri, 29 May 2009 13:46:00 -0500</pubDate>
      <category>Support</category>
      <category>Web.Maps.VE v1.0</category>
      <category>Web.Maps.VE v2.0</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=0c9ed41f-50e3-45bc-b904-3cefac734ef3</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=0c9ed41f-50e3-45bc-b904-3cefac734ef3</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/Bing-Maps-for-Enterprise-and-WebMapsVE-ASPNET-AJAX-Virtual-Earth-Server-Control.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=0c9ed41f-50e3-45bc-b904-3cefac734ef3</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=0c9ed41f-50e3-45bc-b904-3cefac734ef3</feedburner:origLink></item>
    <item>
      <title>Web.Maps.VE v2.00.04 Update Released</title>
      <description>&lt;p&gt;
&lt;span&gt;Today we released the Web.Maps.VE v2.00.04 update release. This
release includes a few new features that have been asked for by our
customers, along with a couple of bug fixes.
&lt;a href="http://simplovation.com/Download/#WEBMAPSVE20TRIAL"&gt;&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span&gt;&lt;a href="http://simplovation.com/Download/#WEBMAPSVE20TRIAL"&gt;Download Here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s a list of changes made in this update release:&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;New Features:&lt;/strong&gt;
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;MiniMapExtender Control JavaScript API
	- Added &amp;quot;SetHorizontalOffset&amp;quot; and &amp;quot;SetVerticalOffset&amp;quot; methods to the
	MiniMapExtender Control&amp;#39;s Client-Side JavaScript API. Their usage is
	mentioned in the &amp;quot;&lt;a href="http://blog.simplovation.com/blog/post.aspx?id=6a46a785-4def-4016-b3c4-0097b24595c6"&gt;Using the MiniMapExtender&lt;/a&gt;&amp;quot; Tutorial.&lt;/li&gt;
	&lt;li&gt;Easily
	Resize the Map from Server-Side .NET or Client-Side JavaScript code -
	Added the capability for the Map controls Height and Width to get
	passed to/from the client and server during an asynchronous postback.
	Now when you change the Height or Width it will get reflected in the
	Map on the client. This release also added the &amp;quot;GetWidth&amp;quot; and
	&amp;quot;GetHeight&amp;quot; JavaScript API methods and fixed the &amp;quot;Resize&amp;quot; method so you
	can eaily and correctly resize the Map from within JavaScript. Both
	Server-Side and Client-Side examples have been added to the Sample
	Website.&lt;/li&gt;
	&lt;li&gt;Color.FromHtml Method - The FromHtml static/shared
	method has been added to the Simplovation.Web.Maps.VE.Color object to
	allow for simple conversion from an HTML Color representation to the
	equivalent Simplovation.Web.Maps.VE.Color representation.&lt;br /&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;Fixes:&lt;/strong&gt;&lt;br /&gt;
&lt;ul&gt;
	&lt;li&gt;Removing
	Multiple ShapeLayers during Async Postback - An issue with using the
	Map.Layers.Remove(), Map.Layers.RemoveAt() and Map.Layers.RemoveAll()
	methods to remove multiple shape layers during the same asynchronous
	postback was fixed.&lt;/li&gt;
	&lt;li&gt;Rare Exception Thrown During
	Map.OnPreRender during Asynchronous Postbacks - Added an extra check
	that will reload the License file in case it happens to be Null during
	the OnPreRender method. Added some extra checks that will throw an
	exception with a meaningful message if the Page.Header happens to be
	Null.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;span&gt;You can view more details on each update release in the &lt;a href="http://simplovation.com/page/webmapsve20/roadmap.aspx"&gt;Web.Maps.VE v2.0 Product Roadmap&lt;/a&gt;.&lt;/span&gt;
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/fwem5XaYWi0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/fwem5XaYWi0/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/WebMapsVE-v20004-Update-Released.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=bd08ae9c-0e3b-487b-b3eb-5c21b0e0e878</guid>
      <pubDate>Tue, 19 May 2009 20:07:00 -0500</pubDate>
      <category>Web.Maps.VE v2.0</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=bd08ae9c-0e3b-487b-b3eb-5c21b0e0e878</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=bd08ae9c-0e3b-487b-b3eb-5c21b0e0e878</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/WebMapsVE-v20004-Update-Released.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=bd08ae9c-0e3b-487b-b3eb-5c21b0e0e878</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=bd08ae9c-0e3b-487b-b3eb-5c21b0e0e878</feedburner:origLink></item>
    <item>
      <title>Support will be closed April 24 until May 4th, 2009</title>
      <description>&lt;span&gt;The Simplovation Support Services will be closed April 24th until May 4th, 2009. You are still free to post questions/answers in the
Forums, but we will be unable to post answers and reply to emails
during this time. Support will resume again on May 4th; at which time
we will work to get back to your questions as soon as we can. Also, all
sales inquiries will not be replied to until on or after May 4th.&lt;br /&gt;
&lt;br /&gt;
Thanks for your patients and understanding during this time.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Chris Pietschmann&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;Owner, Simplovation LLC&lt;br /&gt;
Microsoft MVP - Windows Live Platform&lt;/em&gt;&lt;/span&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/sfvDpYiCQTA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/sfvDpYiCQTA/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/Support-will-be-closed-April-24-until-May-4th-2009.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=daa47803-6198-471c-8814-8fa9e231c891</guid>
      <pubDate>Thu, 23 Apr 2009 17:44:00 -0500</pubDate>
      <category>Support</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=daa47803-6198-471c-8814-8fa9e231c891</pingback:target>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=daa47803-6198-471c-8814-8fa9e231c891</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/Support-will-be-closed-April-24-until-May-4th-2009.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=daa47803-6198-471c-8814-8fa9e231c891</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=daa47803-6198-471c-8814-8fa9e231c891</feedburner:origLink></item>
    <item>
      <title>Web.Maps.VE v2.0 – Using UpdatePanel to Perform Asynchronous Operations</title>
      <description>&lt;p&gt;The &lt;a href="http://simplovation.com/page/webmapsve.aspx"&gt;Web.Maps.VE v2.0 ASP.NET AJAX Virtual Earth Mapping Control&lt;/a&gt; allows you to perform all you Map manipulations (moving the map, adding shape, loading driving directions, etc.) from within server-side .NET code. This is all fine when handling the Map’s own events, but what about using Buttons and Hyperlinks to perform manipulations? This tutorial will show you how to utilize the ASP.NET UpdatePanel control to be able to manipulate the Map during Server Control Events (such as OnClick).&lt;/p&gt;  &lt;h2&gt;Prerequisites&lt;/h2&gt;  &lt;p&gt;This tutorial assumes that you already have a basic understanding of how to place a Map on a Page within your ASP.NET Website or Web Application Project.&lt;/p&gt;  &lt;p&gt;If you need to get an overview of how to place a Map on the Page, then I recommend you go check out the “&lt;a href="http://blog.simplovation.com/blog/post.aspx?id=87d93337-e343-42f8-8b56-67f994a30814"&gt;Getting Started with Web.Maps.VE v2.0&lt;/a&gt;” tutorial.&lt;/p&gt;  &lt;h2&gt;Add Pushpin to the Map when user clicks on an ASP.NET Button or LinkButton Control&lt;/h2&gt;  &lt;p&gt;Once you have a Map control place on the page, you can then create an ASP.NET Button or LinkButton control and manipulate the Map during its OnClick Event. You can perform many different Map manipulations, including (but definitely not limited to) Adding Pushpins, Zooming In and Loading Driving Directions.&lt;/p&gt;  &lt;p&gt;You would define an ASP.NET Button like this:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:Button&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt;
    &lt;span class="attr"&gt;Text&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Do Something&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;OnClick&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Button1_Click&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;And, you would manipulate the Map during the Buttons OnClick event like this:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Button1_Click(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, EventArgs e)
{
    &lt;span class="rem"&gt;// Zoom In&lt;/span&gt;
    Map1.Zoom++;

    &lt;span class="rem"&gt;// Change to Hybrid Map Style&lt;/span&gt;
    Map1.MapStyle = MapStyle.Hybrid;

    &lt;span class="rem"&gt;// Add Pushpin&lt;/span&gt;
    Map1.AddShape(&lt;span class="kwrd"&gt;new&lt;/span&gt; Shape(Map1.LatLong));
}&lt;/pre&gt;

&lt;p&gt;If you run the above example, you’ll notice that every time the user clicks the ASP.NET Button control the entire Page reloads and the Map is completely redrawn. Next we will link up the Buttons OnClick event to an ASP.NET UpdatePanel to cause it to manipulate the Map using an Asynchronous Postback without reloading the entire Page.&lt;/p&gt;

&lt;h2&gt;Manipulate the Map without reloading the Page&lt;/h2&gt;

&lt;p&gt;Now that we’re manipulating the Map during the OnClick event of an ASP.NET Button Control, it sure would be nice if we could manipulate the Map without reloading the entire Page and loosing all the current state of the Map (position, zoom level, currently plotted Shapes). This is where the ASP.NET UpdatePanel control comes in.&lt;/p&gt;

&lt;p&gt;All we need to do is add an ASP.NET UpdatePanel control to the Page and add an AsyncPostBackTrigger for the Button Control’s Click Event. Also, since we aren’t using the UpdatePanel to update any visible html content, we will just leave it’s ContentTemplate “blank.”&lt;/p&gt;

&lt;p&gt;To do this, just add the following code to the .aspx page that contains the Button control we created above:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:UpdatePanel&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;up1&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ContentTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ContentTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Triggers&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:AsyncPostBackTrigger&lt;/span&gt;
            &lt;span class="attr"&gt;ControlID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt;
            &lt;span class="attr"&gt;EventName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Click&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Triggers&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:UpdatePanel&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;Now the Buttons Click event will be raised using an Asynchronous Postback, and any Map manipulations we perform within the Event Handler will be passed down to the Client and implemented on Map already being displayed to the user.&lt;/p&gt;

&lt;h2&gt;Why leave the UpdatePanel’s ContentTemplate “blank”?&lt;/h2&gt;

&lt;p&gt;The reason we leave the ASP.NET UpdatePanel’s ContentTemplate “blank” in the above example is because we don’t want it to update any of the Page’s content.&lt;/p&gt;

&lt;p&gt;But we do want it to update the Map on the Page, don’t we? Yes, that is correct. Except this UpdatePanel with the “blank” ContentTemplate isn’t actually the one that’s updating the Map. The Map updates are actually performed by a “hidden” UpdatePanel that is part of the Map control itself. This is described below.&lt;/p&gt;

&lt;h2&gt;How does the UpdatePanel do this?&lt;/h2&gt;

&lt;p&gt;The Web.Maps.VE v2.0 Map control actually contains a “hidden” ASP.NET UpdatePanel control that it adds to the Page behind the scenes. This “hidden” UpdatePanel is caused to reload when ever any other UpdatePanel on the Page generates an Asynchronous Postback.&lt;/p&gt;

&lt;p&gt;The “hidden” UpdatePanel also passes the current Map state (zoom level, center location, map style, map mode, currently plotted shapes, etc.) back up to the server every time other UpdatePanels on the Page generate Asynchronous Postbacks.&lt;/p&gt;

&lt;p&gt;This automatic communication via the “hidden” UpdatePanel is what allows the Map control to automatically transfer it’s state back and forth between the client and server as needed, and is what enables this rich ajax functionality to work.&lt;/p&gt;

&lt;h2&gt;Can I place Content/Controls within the UpdatePanel’s ContentTemplate&lt;/h2&gt;

&lt;p&gt;Yes, of course. If you have any content (other than the Map) that you want to update on Asynchronous Postbacks you can definitely place that content within the UpdatePanel’s ContentTemplate.&lt;/p&gt;

&lt;p&gt;For example you could display the Maps current Center Location on the Page by placing an ASP.NET Labal control within the ContentTemplate and setting it’s Text within the Button’s Click Event Handler.&lt;/p&gt;

&lt;p&gt;To do this, just add the following line to the Button’s Click Event Handler:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;lblCenterLocation.Text = Map1.LatLong.ToString();&lt;/pre&gt;

&lt;p&gt;And, add an ASP.NET Label control to the UpdatePanel’s ContentTemplate:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:UpdatePanel&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;up1&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ContentTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:Label&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;
            &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;lblCenterLocation&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:Label&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ContentTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Triggers&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:AsyncPostBackTrigger&lt;/span&gt;
            &lt;span class="attr"&gt;ControlID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt;
            &lt;span class="attr"&gt;EventName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Click&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Triggers&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:UpdatePanel&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;h2&gt;Some Tips on using the UpdatePanel Control&lt;/h2&gt;

&lt;p&gt;Here are a few things to note/remember when using ASP.NET UpdatePanel controls on the Page along with the Web.Maps.VE v2.0 Map control:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Do not place the Map control within an UpdatePanel!&lt;/strong&gt; It will cause the control to not function properly, and is not supported.&lt;/li&gt;

  &lt;li&gt;If you have multiple Button, LinkButton or other server controls that will be raising Asynchronous Postbacks to Update the Map, then you’ll want to use only a single UpdatePanel with a “blank” ContentTemplate and add all the necessary AsyncPostBackTriggers to it.&lt;/li&gt;

  &lt;li&gt;If you aren’t updating the Button, LinkButton or other Server Control that is firing the Asynchronous Postback, then don’t place it within the UpdatePanel’s ContentTemplate. This would just generate extra overhead and could affect the overall performance of the Page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to read some more Tips and Tricks on using the UpdatePanel control in general, then I recommend you read the &lt;a href="http://msdn.microsoft.com/en-us/magazine/cc163413.aspx" target="_blank"&gt;“UpdatePanel Tips and Tricks” article by Jeff Prosise&lt;/a&gt; on MSDN. You may also be interested in the “&lt;a href="http://pietschsoft.com/post.aspx?id=0b0d94ba-c184-48ce-b29a-38da320dbc7e" target="_blank"&gt;Some ASP.NET AJAX Tips and Tricks&lt;/a&gt;” article I wrote a while back.&lt;/p&gt;

&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;As you can see it’s fairly simple and straight forward to update the Map during an Asynchronous Postback. And, it can be done from any Server Control’s Event that can be wired up to an UpdatePanel using an AsyncPostBackTrigger.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/3i1WY4jZrhg" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/3i1WY4jZrhg/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/WebMapsVE-v20-e28093-Using-UpdatePanel-to-Perform-Asynchronous-Operations.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=1c7671aa-838d-4986-a0ba-019b7ad8685d</guid>
      <pubDate>Wed, 08 Apr 2009 22:42:26 -0500</pubDate>
      <category>Web.Maps.VE v2.0</category>
      <category>Tutorials</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=1c7671aa-838d-4986-a0ba-019b7ad8685d</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=1c7671aa-838d-4986-a0ba-019b7ad8685d</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/WebMapsVE-v20-e28093-Using-UpdatePanel-to-Perform-Asynchronous-Operations.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=1c7671aa-838d-4986-a0ba-019b7ad8685d</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=1c7671aa-838d-4986-a0ba-019b7ad8685d</feedburner:origLink></item>
    <item>
      <title>Web.Maps.VE v2.0 - Enable Shape Dragging via the VEToolkit DragShapeExtender</title>
      <description>&lt;p&gt;One of the nice User Interface features to implement when using a Map to insert/edit location data within an application is the ability to allow the user to reposition a pushpin or shape by dragging it with the mouse. Neither Web.Maps.VE or Virtual Earth directly implement this functionality. However, the Virtual Earth Toolkit (VEToolkit) contains a DragShapeExtender component that allows for this functionality to easily be implemented using the Web.Maps.VE server control. This tutorial will cover the basics of hooking up the VEToolkit DragShapeExtender to the Web.Maps.VE Map to allow your users reposition shapes by dragging them with the mouse.&lt;/p&gt;  &lt;h2&gt;Prerequisites&lt;/h2&gt;  &lt;p&gt;This tutorial assumes that you already have a basic understanding of how to place a Map on a Page using Web.Maps.VE within an ASP.NET Website or Web Application Project. If you need an overview of how to place a Map on a page, then I recommend you go check out the &lt;a href="http://blog.simplovation.com/blog/post.aspx?id=87d93337-e343-42f8-8b56-67f994a30814"&gt;Getting Started Tutorial&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;It is also assumed that you have a basic understanding of JavaScript programming, but don’t worry only a tiny bit is needed for this tutorial.&lt;/p&gt;  &lt;p&gt;Before you continue, you’ll want to go download the latest JavaScript release of the Virtual Earth Toolkit (VEToolkit) open source project.&lt;/p&gt;  &lt;p&gt;Download VEToolkit Here: &lt;a href="http://vetoolkit.codeplex.com/"&gt;http://vetoolkit.codeplex.com/&lt;/a&gt;&lt;/p&gt;  &lt;h2&gt;Allow User to Create/Delete Shapes using the Mouse&lt;/h2&gt;  &lt;p&gt;First, you’ll need to create an empty ASP.NET Website or Web Application Project and add a Map to it’s Default.aspx page.&lt;/p&gt;  &lt;p&gt;Before we hook up the VEToolkit DragShapeExtender to our Map to allow “draggable” shapes, we need to plot some shape on the Map. To do this we’ll use the following code within the Maps OnClick event handler to Plot New Shapes using the Left Mouse Button and Delete Existing Shapes using the Right Mouse Button.&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Map1_Click(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, AsyncMapEventArgs e)
{
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (e.leftMouseButton &amp;amp;&amp;amp; e.Shape == &lt;span class="kwrd"&gt;null&lt;/span&gt;)
    {
        &lt;span class="rem"&gt;// If the user clicked on the Map using the Left Mouse Button and&lt;/span&gt;
        &lt;span class="rem"&gt;// they didn't click on an existing Shape, then Add a New Pushpin&lt;/span&gt;
        &lt;span class="rem"&gt;// Shape to the Map.&lt;/span&gt;
        Map1.AddShape(&lt;span class="kwrd"&gt;new&lt;/span&gt; Shape(e.latlong));
    }
    &lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (e.rightMouseButton &amp;amp;&amp;amp; e.Shape != &lt;span class="kwrd"&gt;null&lt;/span&gt;)
    {
        &lt;span class="rem"&gt;// If the user clicked on an existing Shape using thr Right Mouse&lt;/span&gt;
        &lt;span class="rem"&gt;// Button, then Delete that Shape from the Map.&lt;/span&gt;
        Map1.DeleteShape(e.Shape);
    }
}&lt;/pre&gt;
&lt;style type="text/css"&gt;
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;

&lt;p&gt;Attach the above method to the Map.Click event using the following:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Simplovation:Map&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Map1&amp;quot;&lt;/span&gt;
    &lt;span class="attr"&gt;OnClick&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Map1_Click&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Simplovation:Map&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;If you need an overview of handling the Map.Click (“OnClick”) event, please read the “&lt;a href="http://blog.simplovation.com/blog/post.aspx?id=190057e0-e105-4943-878f-2b0fcfbe4c77"&gt;Basics of the Click Event&lt;/a&gt;” Tutorial.&lt;/p&gt;

&lt;p&gt;Now that we have a mechanism that allows the user to dynamically add/remove pushpin shapes from the Map, we can go ahead and hook up the VEToolkit DragShapeExtender component.&lt;/p&gt;

&lt;h2&gt;Enable “Draggable” Shapes&lt;/h2&gt;

&lt;p&gt;To enable “draggable” Shapes, we need to incorporate the VEToolkit DragShapeExtender component into our example.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Copy the following two JavaScript files from the VEToolkit into your project.
    &lt;br /&gt;

    &lt;br /&gt;&lt;em&gt;VEToolkit.Core.js
      &lt;br /&gt;VEToolkit.DragShapeExtender.js&lt;/em&gt;

    &lt;br /&gt;

    &lt;br /&gt;The VEToolkit.Core.js file contains the “core” functionality provided by the VEToolkit. I’m not going to go into what it all contains here, but it is required by the VEToolkit.DragShapeExtender.js; which contains the DragShapeExtender component.

    &lt;br /&gt;&lt;/li&gt;

  &lt;li&gt;Add &amp;lt;script&amp;gt; references to the Page Header to include the above two scripts:&lt;/li&gt;

  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt; &lt;span class="attr"&gt;src&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;scripts/VEToolkit.Core.js&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &amp;lt;script src=&lt;span class="str"&gt;&amp;quot;scripts/VEToolkit.DragShapeExtender.js&amp;quot;&lt;/span&gt;&amp;gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

  &lt;li&gt;Declare a JavaScript method to be called once the Map has finished loading in the Page.&lt;/li&gt;

  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;function&lt;/span&gt; Map1_ClientMapLoaded(map) {
        &lt;span class="rem"&gt;// The &amp;quot;map&amp;quot; variable will contain a reference to the client-side&lt;/span&gt;
        &lt;span class="rem"&gt;// Web.Maps.VE object instance.&lt;/span&gt;
    }
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

  &lt;li&gt;Set the above JavaScript Methods Name to the Map.OnClientMapLoaded property so it gets fired appropriately.&lt;/li&gt;

  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Simplovation:Map&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Map1&amp;quot;&lt;/span&gt;
    &lt;span class="attr"&gt;OnClientMapLoaded&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Map1_ClientMapLoaded&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Simplovation:Map&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

  &lt;li&gt;Now we need to create an instance of the VEToolkit.DragShapeExtender component within our OnClientMapLoaded JavaScript Event Handler, and hook it up to the Map to allow for Shapes to be “draggable.” To do this, copy the below &amp;lt;script&amp;gt; block into the page replacing the one we just created to add the Map1_ClientMapLoaded method.&lt;/li&gt;

  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="rem"&gt;// Global variable to hold a reference to the VEToolkit.DragShapeExtender.&lt;/span&gt;
    &lt;span class="kwrd"&gt;var&lt;/span&gt; dragShapeExtender = &lt;span class="kwrd"&gt;null&lt;/span&gt;;

    &lt;span class="rem"&gt;// This Method is called once the Web.Maps.VE Map Control has finished&lt;/span&gt;
    &lt;span class="rem"&gt;// loading on the Page.&lt;/span&gt;
    &lt;span class="kwrd"&gt;function&lt;/span&gt; Map1_ClientMapLoaded(map) {
        &lt;span class="rem"&gt;// The &amp;quot;map&amp;quot; variable will contain a reference to the client-side&lt;/span&gt;
        &lt;span class="rem"&gt;// Web.Maps.VE object instance.&lt;/span&gt;

        &lt;span class="rem"&gt;// Obtain a reference to the VEMap instance within the Web.Maps.VE&lt;/span&gt;
        &lt;span class="rem"&gt;// Map Control.&lt;/span&gt;
        &lt;span class="kwrd"&gt;var&lt;/span&gt; vemap = map.get_Map();
    
        &lt;span class="rem"&gt;// Create a new instance of the VEToolkit.DragShapeExtender and&lt;/span&gt;
        &lt;span class="rem"&gt;// attach it to the VEMap instance.&lt;/span&gt;
        dragShapeExtender = &lt;span class="kwrd"&gt;new&lt;/span&gt; VEToolkit.DragShapeExtender(vemap);
        
        &lt;span class="rem"&gt;// Set the DragShapeExtender to only allow Shapes to be dragged&lt;/span&gt;
        &lt;span class="rem"&gt;// using the Left Mouse Button&lt;/span&gt;
        dragShapeExtender.DragLeftMouseButton = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
        dragShapeExtender.DragRightMouseButton = &lt;span class="kwrd"&gt;false&lt;/span&gt;;
    }
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/ol&gt;

&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Event though this functionality isn’t built directly into Web.Maps.VE (or the MS Virtual Earth API) it’s extremely easy to implement with only a few lines of code. Now you have a nice example of how to allow users of your application to dynamically plot and reposition location data using a Map and their Mouse.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/AS7wuAD_6kA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/AS7wuAD_6kA/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/WebMapsVE-v20-Enable-Shape-Dragging-via-the-VEToolkit-DragShapeExtender.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=922ae652-bd06-44d0-8746-1e421f93a151</guid>
      <pubDate>Wed, 08 Apr 2009 00:09:25 -0500</pubDate>
      <category>Web.Maps.VE v2.0</category>
      <category>Tutorials</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=922ae652-bd06-44d0-8746-1e421f93a151</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=922ae652-bd06-44d0-8746-1e421f93a151</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/WebMapsVE-v20-Enable-Shape-Dragging-via-the-VEToolkit-DragShapeExtender.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=922ae652-bd06-44d0-8746-1e421f93a151</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=922ae652-bd06-44d0-8746-1e421f93a151</feedburner:origLink></item>
    <item>
      <title>Chris Pietschmann Awarded 2009 Microsoft MVP!</title>
      <description>&lt;p&gt;
&lt;img src="/image.axd?picture=2009%2f3%2fMVP_Logo_Horizontal.png" alt="" width="185" height="75" align="right" /&gt;April 1st, 2009, Chris Pietschmann was awarded the 2009 Microsoft MVP (Most Valuable Professional) Award in the Windows Live Platform category for his contributions to the Microsoft Development Community over the past year.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="https://mvp.support.microsoft.com/profile/Pietschmann" target="_blank"&gt;View Chris Pietschmann&amp;#39;s MVP Profile on Microsoft.com&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;Microsoft is pleased to recognize and award its Most Valuable
Professionals (MVPs). We present the MVP Award to thank individuals for
their exceptional contributions to technical communities worldwide.
When a community participant sees an MVP in a technical community,
whether in a newsgroup, as a user group host, a conference speaker, or
a respondent in forums, that community participant can be confident
that the information shared by the MVP will be of the highest caliber
and will help every user make the most of the technology.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="https://mvp.support.microsoft.com/gp/mvpexecsum" target="_blank" title="Microsoft MVP Program Overview"&gt;Overview of the Microsoft MVP Program&lt;/a&gt; 
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/simplovation/~4/FcS4Kd0UKJo" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/simplovation/~3/FcS4Kd0UKJo/post.aspx</link>
      <author>support.nospam@nospam.simplovation.com (crpietschmann)</author>
      <comments>http://blog.simplovation.com/blog/post/Chris-Pietschmann-Awarded-2009-Microsoft-MVP.aspx#comment</comments>
      <guid isPermaLink="false">http://blog.simplovation.com/blog/post.aspx?id=f48b05b6-d87b-4d1e-a912-518ed844a2a0</guid>
      <pubDate>Tue, 07 Apr 2009 21:02:00 -0500</pubDate>
      <category>Awards</category>
      <dc:publisher>crpietschmann</dc:publisher>
      <pingback:server>http://blog.simplovation.com/blog/pingback.axd</pingback:server>
      <pingback:target>http://blog.simplovation.com/blog/post.aspx?id=f48b05b6-d87b-4d1e-a912-518ed844a2a0</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://blog.simplovation.com/blog/trackback.axd?id=f48b05b6-d87b-4d1e-a912-518ed844a2a0</trackback:ping>
      <wfw:comment>http://blog.simplovation.com/blog/post/Chris-Pietschmann-Awarded-2009-Microsoft-MVP.aspx#comment</wfw:comment>
      <wfw:commentRss>http://blog.simplovation.com/blog/syndication.axd?post=f48b05b6-d87b-4d1e-a912-518ed844a2a0</wfw:commentRss>
    <feedburner:origLink>http://blog.simplovation.com/blog/post.aspx?id=f48b05b6-d87b-4d1e-a912-518ed844a2a0</feedburner:origLink></item>
  </channel>
</rss>
