Forum Discussion

LijaHarris's avatar
LijaHarris
Qrew Cadet
3 years ago

Google Map API Broken Link instead of Map Showing Rich Text Field

Hi community,

I have been wracking my brain trying to figure out why I am getting a broken link with my Google Map API Rich Text Field.  Below is a picture of what shows and below that the code.  I don't know what I am doing wrong :(, any help would be so amazing and I would be forever grateful:


Code:

var number zoom = ToNumber(If([GeotagMap_zoom]="", "", [GeotagMap_zoom]));


"\n<img src='https://maps.googleapis.com/maps/api/js?key=MYAPIKEY&callback=initMap"
&
[Customer - ServiceAddress]
&
"&zoom="
&
$zoom
&
"&size=512x512 &maptype=roadmap\n\n&\n\nmarkers=size:med%7Ccolor:blue%7Clabel:G%7C" //size and type of map, color and label of pin

Other code I Have tried:

<img src='https://maps.googleapis.com/maps/api/staticmap?center=&key=MYAPIKEY"
<img src='https://maps.google.com/maps/api/staticmap?center=&key=MYAPIKEY"

MYAPIKEY is just filling in where my API key from google will be placed. 

My API key that I got from google does not have an underscore just one long alpha-numeric key.

------------------------------
Lija Harris
------------------------------

2 Replies

  • if that \n is really there, get rid of it.

    "\n<img src='https://maps.google     etc.......

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • LijaHarris's avatar
      LijaHarris
      Qrew Cadet
      Can't thank you enough Mark!!!! You are truly a consummate guru and absolute legend.

      ------------------------------
      Lija Harris
      ------------------------------