Hey
I want to develop an app which should be able to find my current location and send my Longitude and Latitude with 2 text boxes where I can enter my phone number & a short message. All this to a predefined email....
Regards
Jaffrey
Hey
I want to develop an app which should be able to find my current location and send my Longitude and Latitude with 2 text boxes where I can enter my phone number & a short message. All this to a predefined email....
Regards
Jaffrey
Hi Jaffrey,
Please look at the following documentation:
Get coordinates:
http://docs.appery.io/tutorials/build...
Send email:
http://docs.appery.io/documentation/p...
I tried with the first link every thing is fine but the marker is not showing..I mean the red pin does not drop on my location...
Screen Shot
http://prntscr.com/2z8z42
Dear Jaffrey,
You can't see a marker because you haven't add it.
Please add following code to success datasource event if you want to display it.
pre
var apperyMap = Appery('googlemap_15');
var myLatlng = new google.maps.LatLng(apperyMap.options.latitude, apperyMap.options.longitude);
var marker = new google.maps.Marker({
position: myLatlng,
map: apperyMap.gmap,
title:"Hello World!"
});
/pre
thanks for the reply I did it by mapping and it is working, now my final step after this is completed I will be upgrading my plan to paid plan and will add more paging, so please help me with one more final step, now that when I press (where am I) button I can see marker on my current location, just what to add 2 text boxes where the customer can enter his contact and a short message and a send button, when he click the send button the current latitude and longitude and 2 text box information should be send to a mentioned email like a href="mailto:xyz@gmail.com" rel="nofollow"xyz@gmail.com/a..using ur sendgrid..
Regards
Jaffrey
Hi Jaffrey.
Please try the following:
Drop 2 contact information inputs on the page.
Rename the first to "input_latitude".
Rename the second to "input_longitude".
Replace the previous code:
pre
var apperyMap = Appery('googlemap_15');
//Populating latitude input by the user latitude.
Appery("input_latitude").val(apperyMap.options.latitude);
//Populating latitude input by the user longitude.
Appery("input_longitude").val(apperyMap.options.longitude);
var myLatlng = new google.maps.LatLng(apperyMap.options.latitude, apperyMap.options.longitude);
var marker = new google.maps.Marker({
position: myLatlng,
map: apperyMap.gmap,
title:"Hello World!"
});
/pre
Add database service ("create" or "update") and make mapping from your 4 inputs on the page to request parameters.
Find more here: http://docs.appery.io/tutorials/build...
Invoke previous service on button click.