Sign in
Ken Levy's Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Share this
RSS for posts
Atom
Search
Tags
Community
Gadgets
Miscellaneous
Movies/Music
Travel
Ultimate Ears
Visual FoxPro
Visual Studio
VSX
Windows Live
Archive
Archives
July 2008
(1)
April 2008
(3)
March 2008
(1)
February 2008
(1)
January 2008
(1)
October 2007
(1)
September 2007
(1)
August 2007
(1)
July 2007
(2)
June 2007
(3)
April 2007
(3)
July 2006
(1)
June 2006
(2)
May 2006
(5)
April 2006
(16)
March 2006
(13)
February 2006
(1)
January 2006
(2)
December 2005
(2)
November 2005
(6)
October 2005
(13)
September 2005
(1)
August 2005
(1)
July 2005
(2)
June 2005
(5)
May 2005
(18)
April 2005
(7)
March 2005
(10)
January 2005
(1)
December 2004
(7)
September 2004
(1)
August 2004
(3)
July 2004
(3)
June 2004
(9)
Creating mashups using the Virtual Earth Interactive SDK
MSDN Blogs
>
Ken Levy's Blog
>
Creating mashups using the Virtual Earth Interactive SDK
Creating mashups using the Virtual Earth Interactive SDK
MSDNArchive
9 Jun 2006 3:57 PM
Comments
0
One of the cool things we are doing with the Windows Live Dev site at
dev.live.com
is hosting mashups on the site itself for samples, documentation, etc. The Virtual Earth team recently released a new Virtual Earth Interactive SDK mashup at
dev.live.com/virtualearth/sdk
recently announced on the the
Virtual Earth developer blog
. The Virtual Earth team provided me with a cool demo script to show at
TechEd
next week that highlights some of the cool features of the new VE Interactive SDK. Here is a fun simple demo script that you can try out to create a Virtual Earth mashup web page component:
Go to
dev.live.com/virtualearth/sdk
.
Open the page, and say something like “what do I want to do? Let’s draw a polygon on the map”.
Expand
Draw lines
, and then click on
Draw a polygon
.
The map changes and shows a polygon.
“OK, so that’s what I want to do, so let’s get the code to do it” .
Switch to the
Source Code
tab and click the
Copy
button.
Note:
if you select the code and copy it manually, it preserves the whitespace and looks better when you paste it into Notepad. If you choose the Copy button, it is faster, but doesn’t look as good when you paste it into Notepad. If you paste into a new HTML file in Visual Studio, you get all the nice formatting, so that might be the best way to go.
Open Notepad (or a new HTML in Visual Studio) and paste in the code you just copied.
Save the file to the desktop as
test.html
.
Minimize everything, and double-click
test.html
.
When the page loads, click the security bar and choose
Allow Blocked Content
. Depending on the audience, maybe explain that the security only pops up when running locally.
Alternately, if you are running IIS, save the file in a Web directory and then open it from the browser—no security message.
Click on the
Draw a Polygon
button to see that it does what you expected—draws a polygon on the map.
Some comments about the Virtual Earth Interactive SDK:
You don’t need to be a professional developer to add maps to your web pages. The interactive SDK makes it very simple to get started.
For active web developers, the interactive SDK still provides the full reference SDK on its own tab.
The interactive SDK is a mashup that shows you how to build a mashup—it’s a self-describing “meta” SDK.
Windows Live
Blog - Comment List MSDN TechNet
Loading...