title: Displaying a Google API Map on Unity
body: <p>This morning I had a working map and was trying to get some dropdown objects, in the process of that I've now screwed it up and don't have a working map.</p>
  
  <p>I have a rawimage object with the Google API script inside and I've assigned the rawimage object to the rawimage variable. I'm getting a red question mark. </p>
  
  <p>At one point it worked like literally until I stopped the app and played it again, hadn't touched any code or anything. It worked, then it didn't. I think that was to do with the API key though as I tried to change it beforehand.  </p>
  
  <pre><code>using System.Collections;
  using UnityEngine;
  using UnityEngine.UI;
  
  public class GoogleAPI : MonoBehaviour
  {
  
      public string url; 
  
      public RawImage map;
  
      public float lon;
      public float lat;
  
     public int zoom;
     public int mapHeight;
     public int mapWidth;
     public int scale;
  
     LocationInfo li;
  
     public enum mapType { roadMap, satelite, hybrid, terrain };
     public mapType mapSelected;
  
     private IEnumerator mapCoroutine;
  
     IEnumerator GoogleMaps(float lat, float lon)
     {
  
  
      url = "https://maps.googleapis.com/maps/api/staticmap?center=" + lat + 
            "," + lon + "&amp;zoom=" + zoom + "&amp;size=" + mapHeight + "x" + 
             mapWidth + "&amp;Scale=" + scale+ "&amp;maptype=" + mapSelected +
             "&amp;key=AIzaSyDh1_nS-l7nWOFWvt0Gg9-9dY_11qWzK_Q";
  
  
      WWW www = new WWW(url);
      yield return www; 
      map.texture = www.texture;
  
  
  }
  
  
  
  void Start()
  {
      map = this.gameObject.GetComponent&lt;RawImage&gt;();
      StartCoroutine(GoogleMaps(lat, lon));
      lat = 53.26532f;
      lon = -4.42914f;
      Debug.Log("new maps");
  }
  
  }
  </code></pre>
  
  <p>My question is, Can you see where I've gone wrong? I've seen a few tutorials, there isn't many. They all vary slightly, I've tried other things and still no joy. </p>
  
  <p>The console shows no errors or information. </p>
  
  <p>Thanks.</p>