Google maps with custom markers while moving

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
maarten.koopmans
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 20
Joined: Sun Dec 28, 2008 3:26 pm

Google maps with custom markers while moving

Post by maarten.koopmans » Fri Oct 07, 2011 10:20 am

Hi,

Any idea how to achieve this? Some toolkits have a MapView, but I am clueless on how to do this with LC for iOS.

Any thoughts greatly appreciated!

Cheers, Maarten

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: Google maps with custom markers while moving

Post by FireWorx » Tue Oct 11, 2011 6:56 am

Hi, I have been spending quite a bit of time here

http://code.google.com/apis/maps/docume ... asics.html

I am learning Java Script and editing all the google map examples to get the google map config that I want. This entails copying the source code from the web page examples that you like into say notepad, editing it, and saving it as text not ANSI but unicode but with the name "yourmap.html". As far as loading the "yourmap.html" file that you come up with Dixie has a great MobileMaps stack that will get you started. Once you check his code just substitute your map.html file for his and bingo.

If you want to edit the javascript file on the fly from within your live code mobile ap move the html file to the documents folder where it can be edited and then put "your text to change" into line say 15 of file specialfolder(documents) & '/" & " yourmap.html" then relaunch the html file. This works for changing the lat long coordinates or zoom level etc.

Hope this helps
Dave

Post Reply