I want to use geolocation and direction function, but there is google is not defined error. the code is as below:
function loadScript() {
If you people are getting Error in console then here is the simple solution that I applied.
include the script files in given sequence..
You must first include 'maps.googleapis.com/maps/api/js?sensor=false' first then go for jquery library and remove it from below both (it will work.) I hope it will definitely work.