Google Maps / GPS
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Google Maps / GPS
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
Cheers,
Malte
Re: Google Maps / GPS
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?
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?
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Google Maps / GPS
Hi Dixie, at the line....Dixie wrote:azahan123...
I've attached a stack that will get you started.
be well,
Dixie
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
Targets: Mac, iOS
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Google Maps / GPS
Hi Mark..
Which stack are you looking at ?
be well
Dixie
Which stack are you looking at ?
be well
Dixie
-
- Posts: 854
- Joined: Wed Nov 04, 2009 11:41 am
- Location: Gunthorpe, North Lincs, UK
Re: Google Maps / GPS
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
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
Skids
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Google Maps / GPS
Mark...
Hopefully the problem is not there any more.. I've attached another stack..
be well
Dixie
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
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Google Maps / GPS
Hi Dixie (sorry for the delay responding... I somehow missed your followup post). The problem is still happening at this point:Dixie wrote:Mark...
Hopefully the problem is not there any more.. I've attached another stack..
be well
Dixie
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?
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
Targets: Mac, iOS
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Google Maps / GPS
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
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
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Google Maps / GPS
Impressive. I really like the work you did there.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
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- Posts: 22
- Joined: Mon Dec 05, 2011 5:33 pm
Re: Google Maps / GPS
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.
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Google Maps / GPS
Really nice work here.
Love the interactive ability.
And the lateral thinking.
Respect.
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.
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.