Google Maps Example Code

Al3 (@al3)

11430

0

0

About This Space

A basic example of using Google Maps Address Autocomplete in a Rich Display Screen and a Google map view


Last updated on April 7, 2020

Forked from: /al3/google-maps-example/

Public Permissions:   View   Open/Fork   Run   Comment  

Google Maps Platform Example

This space provides an example of using Google Maps Cloud Platform. The space provides an example of the Address Auto-Complete and a Map view.

The auto-complete in the example is intended to allow you to search for a street address for a location and name the location yourself by specifying a name in the name field. The auto-complete can be used to seaarch for places and landmarks also.

Using This space

In order to use this space:

  • Fork this space to your own space
  • Create a Google Platform Account Google Maps Platform and create an API Key
  • Open the app.json file
    • Select the Main screen format in the upper right corner
    • Edit the External Javascript 2 value and replace [YOUR GOOGLE MAP PLATFORM API KEY] with your API Key

Client code

The Google Maps .js file is included by adding it to the External JavaScript files in the app.json Main screen format.

The code for handling the Autocomplete and loading the map is all client side JavaScript stored in the clientcode.js file.

Using the app

When the page loads the map view is positioned on the user's general area

Screenshot

Enter a Name and then search for the address.

Screenshot

Once an address is selected from the auto-complete list the map will reposition and a marker will be placed. Click the Save button to save the information.

Screenshot

Clicking on a row in the list will display that location on the map.

Screenshot

Google Maps account

The Google Maps Platform requires a account. To use this example with your own Google Maps account fork the google-maps-example-code space and then update the External JavaScript file(2) in the app.json Main screen format and add your API Key.

This space was base don the Google Maps example here:

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Al3 (@al3)

Filters:

Popular Recent

Advanced CRUD application

Al3

17647

0

0

This workspace implements Amazon Web Services Rekognition. The application uses your device camera to take your photo, determine how old you look, and tell you all about it using human speech though the speakers on your device.

14104

1

2

This workspace implements Amazon Web Services Rekognition. The application uses your device camera to take your photo, determine how old you look, and tell you all about it using human speech though the speakers on your device.

Al3

15499

1

1

This workspace implements Amazon Web Services Rekognition. The application uses your device camera to take a photo, analyze objects in the picture, and tell you all about it using human speech though the speakers on your device.

Al3

12589

1

0

This workspace implements Amazon Web Services Rekognition. The application uses your device camera to take a photo, analyze objects in the picture, and tell you all about it using human speech though the speakers on your device.

Al3

12877

0

0

A demo of how to build, test and document APIs

Al3

10368

0

0

A demo of how to build, test and consume APIs

Al3

5684

0

0

This space creates an AWS S3 Bucket Browser using AWS SDK APIs. It allows you to create and delete buckets, list objects in a bucket, and Upload, download, preview or delete objects.

Al3

23686

1

1

This space creates an AWS S3 Bucket Browser using AWS SDK APIs. It allows you to create and delete buckets, list objects in a bucket, and Upload, download, preview or delete objects. This space is protected to protect the credentials being used for the example. To see the code or create a version to browse your own S3 buckets see http://noderun.com/al3/aws-s3-bucket-browser/

Al3

16428

1

1

Very basic file upload example using the File Upload Drag and Drop widget

Al3

19438

0

3

This app consumes a web service and display the information in a grid

Al3

13460

0

0

CRUD Application with Detail Edit Screen

Al3

4918

0

0