How to show user current location on google maps detected by WP7 gps
i want to plot/show current location of user on google map, where as location detec开发者_JAVA技巧ted by WP& gps. thanks in advance
Google maps API documentation is here.
I used the following code in a little (desktop) app of mine, you just need to feed the appropiate set of coordinates.
<script type="text/javascript">
    var map;
    var latlng;
    var lat;
    var lng;
    var zoom;
    function Init() {
        lat = 40.632915;
        lng = -8.68929;
        zoom = 18
        latlng = new google.maps.LatLng(lat, lng);
        var options = {
            zoom: 18,
            center: latlng,
            mapTypeId: google.maps.MapTypeId.SATELLITE
        };
        map = new google.maps.Map(document.getElementById("map_canvas"), options);
   }
</script>
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论