2

I am trying to imbed a Google Map into a Qualtrics Survey. I have been able to successfully accomplish this using the guidance from here: https://github.com/pkmnct/qualtrics-google-map-lat-long/blob/master/README.md

However, the satellite option always says "Sorry, we have no imagery here". It doesn't matter what zoom I start at or change to while viewing.

enter image description here

The code I am using within the JavaScript behavior in Qualtrics is below.

Any suggestions would be appreciated.

{
    /*Place your JavaScript here to run when the page loads*/
initGoogleMapsQuestion(this.questionId, this.getQuestionContainer(), {
  // Map Options, set these! See Map Options in Option Documentation Section
  options: {
    center: {
      lat: 32.829802,
      lng: -83.201989,
    
    },
    zoom: 6,
      
 },
    
  // Marker Options, set these!
  markers: [
    // First Marker
    {
      // See Marker Options in Option Documentation Section
      options: {
        title: "Hunting Property",
        draggable: true,
        label: "1",
      },
      autocomplete: {
        // If true, an autocomplete will show.
        enabled: true,
        // The label shown for the autocomplete field
        label: "Please identify the center of your primary hunting property.  You may type a street address in this box below to more quickly identify your hunting location.  Once you have done this, please move the pin so that it is located in the center of your hunting property.",
        // Styles for the label
        labelCss: "padding-left: 0; padding-right: 0;",
        // Text to show if an invalid location is selected
        invalidLocationAlertText:
          "Please choose a location from the search dropdown. If your location doesn't appear in the search, enter a nearby location and move the marker to the correct location.",
      },
    },
    // You can add more markers as well
  ],
});
});

Qualtrics.SurveyEngine.addOnReady(function()
{
    /*Place your JavaScript here to run when the page is fully displayed*/

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
    /*Place your JavaScript here to run when the page is unloaded*/

});


Michel Kohl
  • 81
  • 2
  • 6
  • Is there a firewall that could be blocking the tiles containing the satellite imagery? – geocodezip May 31 '22 at 18:37
  • I don't expect so. Can access satellite imagery in Google Chrome and Google earth. – Michel Kohl May 31 '22 at 22:45
  • Try updating your Maps JavaScript API version to v=3.49, v=3.48, v=3.47 or v=3.46 :https://developers.google.com/maps/documentation/javascript/versions#release-channels-and-version-numbers – Beth Jun 01 '22 at 04:20
  • Updating API Version did not help @Beth – Michel Kohl Jun 01 '22 at 14:46
  • I see. What errors are you getting in your browser's devleoper console? @MichelKohl – Beth Jun 01 '22 at 23:23
  • @Beth; I am not working through a developers console. This is something you imbed within Qualtrics which has a specific JavaScript entry. It is not building a website from scratch if that makes sense.... – Michel Kohl Jun 03 '22 at 13:36
  • did you ever come to a solution? Having exactly the same issue on a web application that has worked correctly for years – CoupDeMistral Nov 03 '22 at 19:00

0 Answers0