Skip to main content
Question

Google Maps Javascript API Embed into Form

  • November 2, 2017
  • 0 replies
  • 85 views

How can I embed Google Map Javascript into my form?


But is it possible to embed the Google Map Javascript API with just embedded this into a Text-Formula field?


here is the documentation: https://developers.google.com/maps/documentation/javascript/examples/aerial-simple

<!DOCTYPE html>
<html>
  <head>
    "<meta name=""viewport" "content=""initial-scale=1.0, user-scalable=no">
    "<meta charset="utf-8">"
    "<title>45? imagery</title>"
    "<style>
      #map {
        height: 100%;
      }
      /* Optional: Makes the sample page fill the window. */
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>
      function initMap() {
        var map = new google.maps.Map(document.getElementById('map'), {
          center: {lat: 36.964, lng: -122.015},
          zoom: 18,
          mapTypeId: 'satellite'
        });
        map.setTilt(45);
      }
    </script>
    <script async defer
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">;
    </script>
  </body>
</html>
This topic has been closed for replies.

  • Quickbase Alumni
  • November 2, 2017
You may already know this, but here goes. You can get Google Maps to work for you automatically when you use the [Address] data type.