After the command mobileStartTrackingSensor "location" has been called, a user can display an annotation named "Current Location" by touching the blue circle showing this location. At that time, is there any message sent to the card so that a handler can be called with a script allowing, for instance, the display of the current coordinates ?
Thanks for any assistance !
Touching the current location on a map
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 40
- Joined: Sun Jan 24, 2010 10:34 pm
- Location: French Atlantic Island
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Touching the current location on a map
Let's say that you call
in the openStack handler... then the current location is updated every time you change your location... the new coordinates can be displayed with the lat/long provided by the 'locationcahanged' handler
Code: Select all
mobileStartTrackingSensor "location", true
Code: Select all
on locationChanged latitude, longitude
--set the theCurrentLocation of this stack to latitude & comma & longitude
put latitude & comma & longitude into fld "currLocation"
end locationChanged
-
- Posts: 40
- Joined: Sun Jan 24, 2010 10:34 pm
- Location: French Atlantic Island
Re: Touching the current location on a map
Thanks Dixie !
I have already done this, but I'm actually trying to display the coordinates ONLY when the user is touching the blue circle representing the current location. Any idea ?
I have already done this, but I'm actually trying to display the coordinates ONLY when the user is touching the blue circle representing the current location. Any idea ?