SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 284 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

With that in mind, let??™s take a look at what is involved in
incorporating a basic map in your page and explore some of the key API features of the
VE SDK.
Creating a Simple Map
As mentioned earlier, all that??™s needed to include support for VE maps in your page is the
inclusion of an external script file that is hosted on Microsoft servers. VE maps are intrinsically
AJAX enabled, meaning that no extra effort is required at your end. By simply
including the VEMap control in your page, users get the full AJAX experience and are able
to view and move the map around and change various viewing options without any page
refresh. At the time of this writing, the current version of the VE SDK is 5.0 and can be referenced
in your page by adding the following line to the top of the page:

With that, we can now use the VE API. One of the first things to do when adding a
map to your page is to create a host container for the map. For our purposes a simple
tag will suffice as shown here:

Here, the width and height of the
tag have been set to 800 by 600 pixels but can
certainly be any size you need.


Pages:
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296