Google Maps on Mobile

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Google Maps on Mobile

Post by cbarnhart » Wed Aug 22, 2012 2:35 pm

I think this might be an easy one...at least I am hoping.... I have a simple program at is using static google maps. It works great on the computer, but when I run it on a mobile device I get no maps.
on mouseUp
put gAddress1&","&gCity&","&gState into lcenter
replace " " with "+" in lcenter
put "http://maps.googleapis.com/maps/api/sta ... nsor=false" into centerUrl
put url centerUrl into hImage
put hImage into image "Map"
end mouseUp

Any suggestions?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Google Maps on Mobile

Post by Mark » Wed Aug 22, 2012 10:02 pm

Hi,

The URL you're trying to load is not an image. It is a website. An image object doesn't know what to do with HTML code. Use a web viewer instead.

You should probably have asked this question in either the iOS or the Android section of this forum.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply