Hi, I have a problem with the tutorial "Building a mobile app with Google Maps & the Google Directions API" (http://docs.appery.io/tutorials/build...)
Some time ago I did it on Appery.io and I was all right, but now I need to make it in Progress, and not works.
I have noticed that some aspects change from one to the other.
I think I missed when declaring variables and call the function by clicking on the button.
I mean, the tutorial says that to add the following javascript:
**
var sourceAddress = Appery("inputSource").val();
var destinationAddress = Appery("inputDestination").val();
var map = Appery("directionsMap").gmap;
var panel = Appery("directionsPanel")[0];
displayDirections(sourceAddress, destinationAddress, map, panel);
**
and I have this (changing the tags):
**
var sourceAddress = $('[dsid="inputOrigen"]').val();
var destinationAddress = $('[dsid="inputDesti"]').val();
var map = $('[dsid="googlemap"]').gmap;
var panel = $('[dsid="htmlIndicacions"]')[0];
/alert ("sourceAddres: " + sourceAddress + " - destinationAddress: " + destinationAddress);/
displayDirections(sourceAddress, destinationAddress, map, panel);
**
Name tags are correct
The alert print the variables (sourceAddress and destinationAddress) that I have introduced on the inputs correctly
but thereafter, the map stays in the position it had started, and shows no the route in the imageand neither the directions in the table.
I have the rest of the tutorial done exactly as it says.
How can I do it?