Hello,
I found a java script that shows directions on the map
var sourceAddress = Apperyio("from").val();
var destinationAddress = Apperyio("to").val();
displayDirections(sourceAddress, destinationAddress, map);
from this tutorial https://devcenter.appery.io/tutorials...
but I stored the two location in variables by set storage and then set property for the map
two variables for current location ( longitude and latitude) and two for the second location (longitude and latitude)
I want to show the directions between the two places
I changed the code to
var sourceAddress = Apperyio.storage.storageVariable.get("$['temp']['temp2']").val();
var destinationAddress = Apperyio.storage.storageVariable.get("$['markerlat']['markerlng']").val();
displayDirections(sourceAddress, destinationAddress, map);
but it doesnt work with me
can someone help me pls, because I need it for my project
thank you,
asmaa