Geolocation confustion
Hi Jennifer,
You can use a marker - don't clean the address line. Simply pass the coordinates from Geolocation service to a marker, not directly to map. You can find the marker directly in the Google Maps component mapping.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Jennifer,
You can use a marker - don't clean the address line. Simply pass the coordinates from Geolocation service to a marker, not directly to map. You can find the marker directly in the Google Maps component mapping.
Hello! Please add on geolocation service Success event the following code:
prevar lat = data.coords.latitude, lon = data.coords.longitude;
var myOptions = {
zoom :8,
center: new google.maps.LatLng(lat, lon),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map($('div[dsid="directionsMap"]').get(0), myOptions);
var sfLatlng = new google.maps.LatLng(lat, lon);
var marker = new google.maps.Marker({
position: sfLatlng,
map: map
});/pre
Please fill in start address.
On button "get directions" you retrieve source address from Input source :
prevar sourceAddress = Appery("inputSource").val();/pre and when you click on "show my location" this field isn't filled in. You need to get address using coordinates and fill in with this address inputSource. This should help https://getsatisfaction.com/apperyio/...
Is there a tutorial on reverse geolocating? I'm am so lost looking at all of those posts from the link you just sent me. ![]()
Hi Jennifer,
Unfortunately we do not have such tutorial. You can find all you need on the link above.