locked
Need help for adresses using bing maps and Javascript

    Question

  • Hi, 

    I am developping an application where User need to put an adress in a field and it has to show it on the bing map ...I made a fonction that locate and show the user location 

    function centerPosition() {
            var geolocator = new Windows.Devices.Geolocation.Geolocator();
            geolocator.getGeopositionAsync().then(function (loc) {
                var mapCenter = map.getCenter();
                /*   mapCenter.latitude = 45.5000;
                   mapCenter.longitude = -73.5833;
                   mapCenter.altitude = 173;*/
                mapCenter.latitude = loc.coordinate.latitude;
                mapCenter.longitude = loc.coordinate.longitude;
                //  45°31′00″ de latitude nord et à 73°39′00″
                map.setView({ center: mapCenter, zoom: 15 });
    
                addPushPin(mapCenter);
            });
        }
        
    But can someone explain and help me in how to add another point on the bing map where user will define a location 
    Tuesday, April 2, 2013 4:37 PM

Answers