Google Maps / GPS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: Google Maps / GPS

Post by malte » Mon Jun 06, 2011 10:11 pm

Dixie! This is very cool. Any hints on how I would grab the current location and implement a from currentLocation to destination Map?

Cheers,

Malte

ctceismc
Posts: 6
Joined: Wed Jul 20, 2011 2:23 am

Re: Google Maps / GPS

Post by ctceismc » Thu Jul 28, 2011 4:36 am

Dixie:
I tried to edit your mobile location stack script and got this error:
stack "LiveCode Maps": compilation error at line 7 (Chunk: can't create a variable with that name (explicitVariables?)) near "documentFilePath", char 57

But it still runs fine. - any idea what is going on?

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Google Maps / GPS

Post by marksmithhfx » Tue Aug 02, 2011 3:57 am

Dixie wrote:azahan123...

I've attached a stack that will get you started.

be well,

Dixie
Hi Dixie, at the line....

revBrowserSet browserID, "rect", rect of image "browserImage"

in the resizestack handler I get the error

card id 1002: execution error at line n/a (External handler: exception) near "unknown browser id"

Suggesting, perhaps, that I need to install something?

Thanks

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Tue Aug 02, 2011 4:03 am

Hi Mark..

Which stack are you looking at ?

be well

Dixie

Simon Knight
Posts: 854
Joined: Wed Nov 04, 2009 11:41 am
Location: Gunthorpe, North Lincs, UK

Re: Google Maps / GPS

Post by Simon Knight » Tue Aug 02, 2011 7:57 am

Dixie et al,

This thread is of interest and I have down loaded the desktop stack and it looks great. But, jumping off topic, can anyone point me towards some basic mapping that may be plotted without an internet connection?

best wishes
Simon
best wishes
Skids

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Tue Aug 02, 2011 1:53 pm

Mark...

Hopefully the problem is not there any more.. I've attached another stack..

be well

Dixie
Attachments
Map2.livecode.zip
(3.04 KiB) Downloaded 354 times

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Google Maps / GPS

Post by marksmithhfx » Sat Aug 13, 2011 7:37 pm

Dixie wrote:Mark...

Hopefully the problem is not there any more.. I've attached another stack..

be well

Dixie
Hi Dixie (sorry for the delay responding... I somehow missed your followup post). The problem is still happening at this point:

on resizeStack
/* keep the browser 16 pxs from the bottom to be able to get to the resize window box */
set the rect of image "browserimage" to 0, 0 & "," & (the width of this stack) & "," & (the height of this stack -16 )
revBrowserSet browserID, "rect", the rect of image "browserimage" <-- error occurs on this line (see error msg below)
--pass resizeStack
end resizeStack

stack "Maps": execution error at line n/a (External handler: exception) near "unknown browser id"

However, if I click the continue button it continues to initialize and displays a google map... full screen! Very cool. It looks like map is centered around someplace like Bristol.... no, maybe Wells? :D

Very cool. I will enjoy exploring. Thanks for posting.

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Sat Aug 13, 2011 7:59 pm

Hi Mark...

In the last stack I posted for you, I am now not getting that intermittent error... I have just tried it again. Yes, it does start by being centred on Wells, as that is where I live..:-)

If you are interested, email me off list john@ihouse.on-rev.com ...and I can send you some stacks that show how to show a route and get the directions..

be well

Dixie

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Google Maps / GPS

Post by marksmithhfx » Sun Aug 14, 2011 3:07 am

Dixie wrote:azahn123...

I made a mistake about which forum you had posted in... This attached stack is for mobile, the previous one just runs on the desktop.
Hope that it helps you...

Dixie
Impressive. I really like the work you did there.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

josephreesGA75ef
Posts: 22
Joined: Mon Dec 05, 2011 5:33 pm

Re: Google Maps / GPS

Post by josephreesGA75ef » Thu Dec 08, 2011 8:31 am

I'm trying to replicate and also make some changes to the iOS version of the stack posted here. In the Application Browser, it shows 2 lines of code/script are attached to the card. However, if I look at that card in the Code Editor, it shows 0 lines of code there. Is there some way the code is hidden? I'm trying to merge this stack with the ability to have the app track my current location and start there instead of being centered on the default location in the html file. By missing those 2 lines of code, I get a display that shows the code for the location instead of the map now. Any help would be greatly appreciated.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Google Maps / GPS

Post by BarrySumpter » Tue Apr 17, 2012 1:33 am

Really nice work here.
Love the interactive ability.
And the lateral thinking.
Respect.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply

Return to “iOS Deployment”