All Projects → keita-makino → qualtrics-map

keita-makino / qualtrics-map

Licence: MIT license
Google Maps integration into Qualtrics.

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to qualtrics-map

jquery-google-reviews
simple jquery Plugin that utilizes Google API to get data from a Place on Google Maps
Stars: ✭ 33 (+94.12%)
Mutual labels:  google-maps, google-maps-api, google-places-api
React Native Maps Directions
Directions Component for `react-native-maps`
Stars: ✭ 846 (+4876.47%)
Mutual labels:  google-maps, google-maps-api
Android-Google-Places-API
An easy implementation of Google Places API in Android https://developers.google.com/places/web-service/
Stars: ✭ 53 (+211.76%)
Mutual labels:  google-maps, google-places-api
Magento2 Google Address Lookup
Provides an address lookup service on a Magento 2 store powered by the Google Places API
Stars: ✭ 46 (+170.59%)
Mutual labels:  google-maps, google-maps-api
Use Places Autocomplete
😎 📍 React hook for Google Maps Places Autocomplete.
Stars: ✭ 739 (+4247.06%)
Mutual labels:  google-maps, google-maps-api
React Google Maps Api
React Google Maps API
Stars: ✭ 791 (+4552.94%)
Mutual labels:  google-maps, google-maps-api
GoogleMaps-CustomInfoWindow-Button
interactive custom InfoWindow for Google Maps
Stars: ✭ 14 (-17.65%)
Mutual labels:  google-maps, google-maps-api
react-google-static
🌍 A React wrapper for Google Static Maps API.
Stars: ✭ 37 (+117.65%)
Mutual labels:  google-maps, google-maps-api
Load Google Maps Api
🌏 A lightweight Promise-returning helper for loading the Google Maps JavaScript API
Stars: ✭ 166 (+876.47%)
Mutual labels:  google-maps, google-maps-api
Google Maps
Google Maps Web Services API wrapper for .NET
Stars: ✭ 171 (+905.88%)
Mutual labels:  google-maps, google-maps-api
Googleway
R Package for accessing and plotting Google Maps
Stars: ✭ 187 (+1000%)
Mutual labels:  google-maps, google-maps-api
Snazzy Info Window
Customizable info windows using the Google Maps JavaScript API.
Stars: ✭ 560 (+3194.12%)
Mutual labels:  google-maps, google-maps-api
laravel-5.3-app
🗺️ Get started with Laravel 5.3, Vue.js and Google Maps API
Stars: ✭ 28 (+64.71%)
Mutual labels:  google-maps, google-maps-api
Wanderlust The Travellers App
👟 An android application for travellers which allows them to save their journey experiences at one place in an organizable way. For detailed description, read the README.md file. Moreover, the application's design follows the latest HCI and UI/UX design guidelines.
Stars: ✭ 23 (+35.29%)
Mutual labels:  google-maps, google-maps-api
Flask Googlemaps
Easy way to add GoogleMaps to Flask applications. maintainer: @RiverFount
Stars: ✭ 550 (+3135.29%)
Mutual labels:  google-maps, google-maps-api
Maplace.js
A Google Maps Javascript plugin for jQuery.
Stars: ✭ 1,021 (+5905.88%)
Mutual labels:  google-maps, google-maps-api
hopOn
A car rental flutter application using firebase and google maps API
Stars: ✭ 68 (+300%)
Mutual labels:  google-maps, google-maps-api
Firebase-Realtime-Car-Moving-On-JavaScript-Google-Maps
This is the solution for moving realtime cars on Google Maps JavaScript using Google Firebase Realtime Database.
Stars: ✭ 26 (+52.94%)
Mutual labels:  google-maps, google-maps-api
Bikedeboa
A (Progressive) Web App to find, map and review bike parkings in the cities of Brazil.
Stars: ✭ 54 (+217.65%)
Mutual labels:  google-maps, google-maps-api
Meteor Google Maps
🗺 Meteor package for the Google Maps Javascript API v3
Stars: ✭ 198 (+1064.71%)
Mutual labels:  google-maps, google-maps-api

qualtrics-map

A react-based component that displays an embedded Google Maps in Qualtrics.

Features

  • Collection of multiple answers in one question.
    • e.g., "From:" and "To:"
  • Use either of address bar with autocomplete or map marker.

Example


Installation

Google Maps API

This library uses Google Geocoding API, Maps Javascript API, and Places API.
Make sure you have a key to access those APIs.

Option 1 (use CDN)

Click to open

Copy https://cdn.jsdelivr.net/gh/keita-makino/qualtrics-map/dist/bundle.js <- this address (not the contents of this address) and proceed to "Header settings".

Option 2 (manual upload)

Click to open

Get bundle.txt

There are two ways to obtain your bundle.txt. Choose one way as your needs and then proceed to "Qualtrics Survey Settings".

Using template

Download the template from the relaese page.

Build by yourself

Alternatively, you can build the component in your environment.
This approach is neeeded if you want to custom the component (placeholder text, button color, and others).

  1. Clone or download the repository.
  2. npm ci
  3. npm run build

Qualtrics Survey Settings

File Upload

  1. Go to the files library in Qualtrics.
  2. Upload the text file.
  3. Click the gear icon at the right of the uploaded file and select "Rename File".
  4. Select the uploaded file and click "View" button.
  5. Copy the URL of the file opened in the new window and proceed to "Header settings".

Header settings

  1. In the survey edit screen, click "Look & Feel" on right-top.
  2. Select "General" tab and then edit the "Header".
  3. Click the "<>" icon to enter coding-view.
  4. Copy and paste the following code, replacing the [apiKey] and [fileUrl] with respectively the API key and the URL that you copied above.
<script>
  var apiKeyGoogleMap = '[apiKey]';
  var countryCode = '${loc://CountryCode}';
  var postalCode = '${loc://PostalCode}';
</script><br />
<script src="[fileUrl]"></script>

Use it

  1. The question that you want add the map has to be set as "Text Entry" + "Form" question.
  2. Add / remove text fields and set the field tag as you need. (e.g., Two text fields named "From:" and "To:").
  3. In the question, click the gear icon and then "Add Javascript..."
  4. Use the following code.
  5. If you need to set a default center location, use the latter one.
  6. All done!
Qualtrics.SurveyEngine.addOnload(function () {
  document
    .getElementById(this.questionId)
    .querySelectorAll('[role*=presentation]')[0].style.display = 'none';
});

Qualtrics.SurveyEngine.addOnReady(function () {
  mapRender(apiKeyGoogleMap, document.getElementById(this.questionId));
});

// If you need to set a default center
Qualtrics.SurveyEngine.addOnReady(function () {
  mapRender(apiKeyGoogleMap, document.getElementById(this.questionId), {
    location: {
      lat: 50,
      lng: -100,
    },
    zoom: 12, // Optional
  });
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].