Google Maps in notes field

Google Maps in notes field

Hi,

I know there are a few topics relating to my question, but I have a specific problem which I can't find a solution to.

I can display a static google map in a notes field but when I try to add a marker to the map no image displays at all.

So when I run this everything works and the map displays:

addressVar="1600+Pennsylvanian+Avenue,Washington";

imageUrl = "https://maps.googleapis.com/maps/api/staticmap?center="+addressVar+"&zoom=13&size=320x320&maptype=roadmap";

input.map1 = "<img src='" + imageUrl + "'/>";

But if I change imageUrl to:

imageUrl = ""https://maps.googleapis.com/maps/api/staticmap?center="+addressVar+"&zoom=13&size=320x320&maptype=roadmap &markers=color:blue|label:S|"+addressVar+"";

I get nothing.

But imageUrl returns the string: 

https://maps.googleapis.com/maps/api/staticmap?center=1600+Pennsylvanian+Avenue,Wasington&zoom=13&size=320x320&maptype=roadmap&markers=color:blue|label:S| 1600+Pennsylvanian+Avenue,Wasington

If I copy that string into the address bar of a browser it does return the map WITH the marker.


Any ideas?