This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 5 years, 10 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
October 17, 2013 at 2:55 am 9103
Tareq Hasan hi, is there a way to put this code as default. the current user location?
if (navigator.geolocation){
navigator.geolocation.getCurrentPosition(success, error);
}else{
  alert("Geoortung wird nicht unterstützt!");
}

function error() {
  alert("Die Positionsbestimmung ist Fehlgeschlagen!")
}

function success(pos){
  alert("Längengrad: " + pos.coords.longitude + " und Breitengrad: " + pos.coords.latitude);
}
it must be something like a hook before the form is created. can anyone help? cheers, denis
October 17, 2013 at 9:53 pm 9148
Tareq Hasan Tareq Hasan

Try embedding the code in /class/render-form.php in map function.

Viewing 1 Posts - 1 through 1 (of 1 total)