Как я могу отправить местоположение GPS в WebView в Xamarin.Forms? - PullRequest
0 голосов
/ 06 августа 2020

Я использую https://leafletjs.com/ в моем веб-просмотре Xamarin Forms. Но я не могу получить в нем местоположение GPS.

function onLocationFound(e) {
    var radius = e.accuracy;

    L.marker(e.latlng).addTo(map)
        .bindPopup("You are within " + radius + " meters from this point").openPopup();

    L.circle(e.latlng, radius).addTo(map);
}

map.on('locationfound', onLocationFound);
function onLocationError(e) {
    alert(e.message);
}

map.on('locationerror', onLocationError);

показывает мне ошибку:

Blockquote

Ошибка геолокации: Истекло время ожидания

Цитата

...