-
-
Save talcual/3882340c5b2cee7f62fa5ddcd2b1f45b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initMap() { | |
navigator.geolocation.getCurrentPosition(centerMap, locationError); | |
$scope.correctDir = false; | |
var options = { | |
types: [], | |
componentRestrictions: {country: 'co'} | |
}; | |
var input = document.getElementById("address-auto"); | |
var autocomplete = new google.maps.places.Autocomplete(input, options); | |
autocomplete.addListener('place_changed', function() {placeMarker(autocomplete)}); | |
console.log(autocomplete); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment