Click here to Skip to main content
15,886,776 members
Articles / Desktop Programming / WPF

Kinect Bing Map AJAX Control 6.3 with WPF

Rate me:
Please Sign up or sign in to vote.
4.50/5 (4 votes)
12 Apr 2012CPOL4 min read 27K   591   9  
Kinect Bing Map Ajax Control 6.3 - 3D, Streetside and Bird Eye with WPF Webrowser Control
<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Kinect 3D Bing Maps</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>
    <script type="text/javascript">
        var map = null;
        var mouseClickThreshold = 0;
        var mouseDownLocation;
        var pincounter = 0;
        var isVideo = false;

        function GetMap() {

            map = new VEMap('myMap');
            map.SetCredentials("AlK3Dt91ummP7gHZdrT7Hhxxlhv82vJgNGERIYQspUWeTV0egPquFwAoWWLnRrIt");

            map.LoadMap();
            map.SetZoomLevel(17);
            map.SetCenter(new VELatLong(40.7028349, -74.011404));
            map.SetMapMode(VEMapMode.Mode3D);

           }

        function zoomIn() { map.ZoomIn(); }

        function zoomOut() { map.ZoomOut(); }

    </script>  

</head>
<body onload="GetMap();">
    
        <div id='myMap' style="position:relative;  float:left; border:5px solid black; left:0px; width:1000px; height: 700px;"></div>

</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student Ghulam Ishaq Khan Institute
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions