Discussions

 View Only
  • 1.  Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 01-28-2022 13:23
    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.  RE: Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 01-28-2022 14:45
    if that \n is really there, get rid of it.

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

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 02-04-2022 11:45
    Can't thank you enough Mark!!!! You are truly a consummate guru and absolute legend.

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



  • 4.  RE: Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 21 days ago

    Lija,

    I am trying to do something that needs the google maps 'MyAPIKey'. How do I get that for myself?



    ------------------------------
    Mike Tamoush
    ------------------------------



  • 5.  RE: Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 21 days ago

    Mike - you would need to create that in your google cloud console



    ------------------------------
    Chayce Duncan
    ------------------------------



  • 6.  RE: Google Map API Broken Link instead of Map Showing Rich Text Field

    Posted 21 days ago

    Thanks Chayce. By the way, do you make custom code pages for people, or would you (paid)? If so, please contact me. My emails is in my bio.



    ------------------------------
    Mike Tamoush
    ------------------------------