Home Forums Plugin Support WP User Frontend (Free Version) google map default

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9103

    Denis
    Participant
    Post count: 165

    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

    #9148

    Tareq Hasan
    Keymaster
    Post count: 2831

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

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘google map default’ is closed to new replies.