public/js/empleados/shared.js
// as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser ' s ' navigator . geolocation ' object .
function geolocate() {
    if (navigator.geolocation) {
      navigator.geolocation.getCurrentPosition(function(position) {
        var geolocation = {
          lat: position.coords.latitude,
          lng: position.coords.longitude
        };
        var circle = new google.maps.Circle({
          center: geolocation,
          radius: position.coords.accuracy
        });
        autocomplete.setBounds(circle.getBounds());
        autocomplete1.setBounds(circle.getBounds());
      });
    }
}
function geolocate ( ) { if ( navigator . geolocation ) { navigator . geolocation . getCurrentPosition ( function ( position ) { var geolocation = { lat : position . coords . latitude , lng : position . coords . longitude } ; var circle = new google . maps . Circle ( { center : geolocation , radius : position . coords . accuracy } ) ; autocomplete . setBounds ( circle . getBounds ( ) ) ; autocomplete1 . setBounds ( circle . getBounds ( ) ) ; } ) ; } }
as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser ' s ' navigator . geolocation ' object .