Folks:
Turns out there is a Google Static Map api. I’m trying to use it, but get no 
response from my code that indicates an error.
The Static Maps API URL is: 
https://developers.google.com/maps/documentation/static-maps/?csw=1 
<https://developers.google.com/maps/documentation/static-maps/?csw=1>

From the dictionary, it looks like I can do this: (this is the example in the 
google docs. It gives me a map when I put the URL into the browser). 
on mouseUp

  put mapURL() into tURL

  put tURL

   put URL tURL into x

   put x into image  “myGMap” —This, obviously won’t work. See below. 

end mouseUp


function mapURL

    put 
"https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4";
 into retURL

     return retURL

end mapURL

I get text back that looks like that below. It is obviously in some format I 
can decode in Livecode. I’ve just reached my comfort level with this. How 
should I decode this. so I can set the imagedata to it?
Tnx,
Bill P

—start of returned text
âPNG 



���
IHDR��ê��ê���∑a∆˛��ùPLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^aaabbbdddfffkgchhhmmmssstttxxxzzz4®S�õ⁄BÖÙDÑÚEÜÚIäÒNäÚOçÚPçÚSèÚTêÚXíZíÛYîÙaóÙbòıjùÙmûıt£Û{•}™Úó{WãocÍC5ËD8ËE:ÈG9ÈJ:ÈL?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to