Topic
  • 3 replies
  • Latest Post - ‏2012-10-03T15:58:32Z by SystemAdmin
DGK5_Alexander_Kern
DGK5_Alexander_Kern
6 Posts

Pinned topic Setting Geolocation Infromation Manually

‏2012-10-02T16:58:32Z |
We are preparing a ShowCase for a client. For this Shocase we are using a Geolocation Feature & would like to set the location of the presentation in the emulator.

Is there a posiblity to set the gelocation via the form? As much as I can tell it is only possible to either drag the map or to use the randomizer (which is of no use, by the way ;-).

Many thanks for your very swift reply (demo is tomorrow evening ;-).

All the best - Alex
  • DGK5_Alexander_Kern
    DGK5_Alexander_Kern
    6 Posts

    Re: Setting Geolocation Infromation Manually

    ‏2012-10-03T15:35:19Z  
    Nobody has an idea? How do you guys test the geo location? How do you present it if you have a showcase?
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Setting Geolocation Infromation Manually

    ‏2012-10-03T15:50:48Z  
    Nobody has an idea? How do you guys test the geo location? How do you present it if you have a showcase?
    Worklight ships with Apache Cordova, so you should be able to replicate the examples listed here:
    http://docs.phonegap.com/en/2.1.0/cordova_geolocation_geolocation.md.html#Geolocation

    You may also want to read up on Apache Cordova and Worklight here:
    https://www.ibm.com/developerworks/mobile/worklight/getting-started/

    Module 07.4 - Apache Cordova (PDF, 641KB)
    Module 08.3 - iOS Development Using the Apache Cordova Plugin (PDF, 527KB)
    Module 09.3 - Android Development Using the Apache Cordova Plugin (PDF, 345KB)

    Getting geolocation data is not a Worklight specific thing, you can find a lot of code samples on the web if the ones above didn't work, for example:
    http://www.w3schools.com/html/html5_geolocation.asp
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Setting Geolocation Infromation Manually

    ‏2012-10-03T15:58:32Z  
    Worklight ships with Apache Cordova, so you should be able to replicate the examples listed here:
    http://docs.phonegap.com/en/2.1.0/cordova_geolocation_geolocation.md.html#Geolocation

    You may also want to read up on Apache Cordova and Worklight here:
    https://www.ibm.com/developerworks/mobile/worklight/getting-started/

    Module 07.4 - Apache Cordova (PDF, 641KB)
    Module 08.3 - iOS Development Using the Apache Cordova Plugin (PDF, 527KB)
    Module 09.3 - Android Development Using the Apache Cordova Plugin (PDF, 345KB)

    Getting geolocation data is not a Worklight specific thing, you can find a lot of code samples on the web if the ones above didn't work, for example:
    http://www.w3schools.com/html/html5_geolocation.asp
    You can also fake the location by providing your own data using the Mobile Browser Simulator after you implement some of the code referenced above.

    Here's a relevant picture:
    http://f.cl.ly/items/0I010r382M3P1f2d1M3F/Screen%20Shot%202012-10-03%20at%2011.00.10%20AM.png