Page 1 of 2

How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 11:05 am
by B510

How to show my current location as soon as my page shown..
I have followed the tutorial on http://devcenter.appery.io/tutorials/...
but it does not work..

Please help

Thanks a lot in advance


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 12:50 pm
by obullei

Hello!

Please specify what exactly does not work, when you pass this tutorial?
If it possible, please provide a screenshot.


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 1:20 pm
by B510

I meant when the page shown the map should display the current location position of the device .. please help.. thanks

Image

Image

Image

Image


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 1:27 pm
by B510

my understanding is .. the Map should be able to show current coordinate location without entering the address property..then show it to map

need your advise..

thanks


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 2:48 pm
by Alena Prykhodko

Hi,

Do you test app in browser or run as native?
Please make sure your device/browser allow to show location.


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 2:51 pm
by B510

yes, currently I use browser (Chrome) and I turned allowed to use my location..


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 3:18 pm
by Alena Prykhodko

You invoke service on Online event, it fires when the app switches into online mode. Please try to use Page Show event or Load event.

Just to check whether service is working you can add its invocation on button click event.


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 11:23 pm
by B510

Hi.. I also had tried to invoke geolocation service in button click event.. but it does not work.. :(

Image


How to show my current location as soon as my page shown..

Posted: Sun Sep 07, 2014 11:45 pm
by Illya Stepanov

Hi --

You have the incorrect mapping response from the Geolocation service -- the latitude/longitude should be mapped to the 'Screen1' map component latitude/longitude correspondingly.
Image


How to show my current location as soon as my page shown..

Posted: Wed Jun 03, 2015 4:35 pm
by umama fakher

Any solution for this question ?