- Home /
Question by
sanatos0021 · Mar 16, 2017 at 08:34 PM ·
apigoogleembed
(Sorry for my english) why when i use embed google api works well in unity editor, but it doesn't in android ? (only shows me a interrogation sign)
This is my code its works very well in unity editor, but it shows a big interrogation in the raw image when im running in my cellphone and i want to see the map.
Input.location.Start();
latitud = -24.193227f;
yield return latitud;
longitud = -65.302438f;
yield return longitud;
key = "&key=MY_ API_KEY";
uriMap = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitud + "," + longitud + "&markers=color:red%7Clabel:P%" + latitud + "," + longitud + "&zoom=" + zoom + "&size=600x300" + "&maptype=hybrid&markers=color:red%7Clabel:P%7C" + latitud + "," + longitud + "&type=hybrid&sensor=true?a.jpg";
WWW www = new WWW(uriMap+key);
yield return www;
imageMap.texture = www.texture;
latitudText.text = " " + latitud;
longitudText.text = " " + longitud;
Comment
Your answer
Follow this Question
Related Questions
fromjson array ends up null 0 Answers
Google Map Geocoding API gives different results on different platforms 0 Answers
Help me reading a spreadsheet from Google drive using the API 1 Answer
modify given google API script to use phone gps location? 0 Answers
embed google maps into unity 3d 4 Answers