1. Home >
  2. Documentation >
  3. Services >
  4. getgeoloc
 

getgeoloc

This function provides geolocation of the visitor using the HTML5 Geolocation API.

Usage

Parameters

  • None

Example

$('#test').gmap3({
  getgeoloc:{
    callback : function(latLng){
      if (latLng){
        $(this).gmap3({
          marker:{ 
            latLng:latLng
          },
          map:{
            options:{
              zoom: 5
            }
          }
        });
      }
    }
  }
});
Close