Page 1 of 2

Add geolocation component

PostPosted: 06 Aug 2014 08:39
by francesco
for one my high priority project i need to save the position of the user.

Sencha has it (http://training.figleaf.com/tutorials/senchacomplete/chapter2/lesson9/5.cfm) probablby there is a open source counterpart you can wrap.

A use case:
1) user logs in into a mobile web app used to track tasks
2) user does Task1 and clicks on "Done" button
3) Task1 is marked as done and Done at POSITION is stored into db
POSITION comes from the geolocation component.

Please let me know your plans about this.

Re: Add geolocation component

PostPosted: 06 Aug 2014 09:56
by Alexander Bulei
Hi francesco,

Sencha framework is identical to phohegap libraries.
These libraries are like a bridge between the browser and device.
Unfortunately, we have no any "bridge" implemented.

Best Regards.

Re: Add geolocation component

PostPosted: 06 Aug 2014 11:27
by francesco
cgdevtools wrote:Unfortunately, we have no any "bridge" implemented.


Hi. Do you mean in an intraweb application it will never be possible to get geolocation?
wrapping a part of phonegap in a cgdevtools control is not possible?

Re: Add geolocation component

PostPosted: 06 Aug 2014 11:53
by Alexander Bulei
Hi francesco,

Do you mean in an intraweb application it will never be possible to get geolocation?


It's possible to use geolocation of browser html5 (only when supported).
Libraries like Sencha and phonegap gives you more control.

You can use the ExtraHeader property of form to insert your javascript function, which will return the coordinates.

Help article: http://www.w3schools.com/html/html5_geolocation.asp
Browser Compatibility: http://caniuse.com/#feat=geolocation

Best Regards.

Re: Add geolocation component

PostPosted: 06 Aug 2014 12:06
by Jorge Sousa
Hello

Also, you can use the GeoLocation example in GMap3 demo

But please note, that one thing is executing with and without GPS.

Without it, it uses the provider IP.

Re: Add geolocation component

PostPosted: 07 Aug 2014 15:21
by francesco
cgdevtools_support wrote:Hello

Also, you can use the GeoLocation example in GMap3 demo
.

This is interesting.
Is it possible to use the GMap3 approach in a mobile app by using it only to retrieve the position (= being able to save latitude and longitude)?.

Re: Add geolocation component

PostPosted: 07 Aug 2014 15:57
by Jorge Sousa
Hi

Sure, you don't need the map at all, its an embedded service.

Re: Add geolocation component

PostPosted: 08 Aug 2014 09:07
by francesco
Ok so let's say we have the geolocation component throug Gmap3. Of course the user must be trained that to achieve the best result wifi + GPS must be on (and GPS must be ok). Thanks.

Re: Add geolocation component

PostPosted: 08 Aug 2014 09:40
by Jorge Sousa
Hi Francesco

That's it, you're welcome

Re: Add geolocation component

PostPosted: 07 Dec 2016 12:36
by Soren SDF
Jorge Sousa wrote:Hello

Also, you can use the GeoLocation example in GMap3 demo

But please note, that one thing is executing with and without GPS.

Without it, it uses the provider IP.

Hi. I don't seem to have access to the link. Help would be appreciated.
Sören A,