I've been using google maps via JavaScript for quite a while. I want to include the solar images (similar to Google Project Sunroof) on my existing map. I am able to pull the data back from solar.googleapis.com/v1/dataLayers:get successfully, but have not figured out how to add it to my map.
I tried adding it like this "map.data.addGeoJson(sunroofGeoJson);" and "map.data.addGeoJson(JsObject.jsify(sunroofGeoJson));", but I keep getting a blank map and this error "Uncaught SyntaxError: Invalid or unexpected token".
I've been searching the web for 4 hours for an example, but I cannot find anything that ties the response back to the map.
var sunroofGeoJson = null;
sunroofGeoJson = await JSON.parse('<%=GetSunroofGeoJson() %>');
map.data.addGeoJson(JsObject.jsify(sunroofGeoJson));