+1
Respost

Where can I find a tutorial for "Using GPS Location?" It's listed on the tutorials page but is blacked out so I can't click on it.

joshlevinson fa 11 anys updated by icahill (Administrator) fa 10 anys 1
For my app I need to use the GPS coordinates of the user's device as part of the submitted form. Where can I find a tutorial on this as the tutorial on the tutorials page is blacked out and can't be clicked.
If you just want to return coordinates, you can do this easily like this:


<wire>
<main>
<panel name="back" width="100%" height="100%" background="ffffff" >
<map name="map" alias="MAP" type="map" height="1" width="1" currentlocation="yes" showuser="yes" alpha="0"></map>
</panel>
</main>
<actions>
<action name="coordinates" oninit="yes" >
<alert message="[object:MAP.gpslocation]"/>
</action>
</actions>
</wire>