Google Maps To/From Location
The Google Maps To/From Location Component allows Studio Users to include a Google Map in an app with preset From and To locations. This Component is useful when directing customers between two known locations, such as from your restaurant to the ballpark, or from the airport to the corporate office.
This component requires a Google Maps API Key. To learn more, see How to Get A Google Maps API Key.
Add a Google Maps To/From Location Component to Page
- 1
- Create or open an existing app.
- 2
- Click the Edit Pencil on a Page.
- 3
- Click the Green + Icon, located in the bottom right corner.
- 4
- Either scroll to Google Maps To/From Location in the list or begin typing Google Maps To/From Location to search the list.
- 5
-
Select Google Maps To/From Location. The Google Maps To/From Location Component will appear at the bottom of the Content list in the left-hand column. The Google Maps To/From Location Properties will appear in the right-hand column.
Google Maps To/From Location Properties
The Google Maps To/From Location Component has the following properties:
- Component Id - Sets the name of the Google Maps To/From Location Component in the app. The Component Id can be referenced using JavaScript to add more functionality to the app as needed.
Pro Tip: It is a best practice to use only letters without spaces for the Component Id. Symbols, spaces, and numbers are not recommended. -
Google Maps API Key - Enter the Google Maps API Key. Make sure to not include any additional spaces when entering the Google Maps API Key. How to Get A Google Maps API Key.
-
From Location Address - Enter in the From Location Address you want to appear on the app.
-
To Location Address - Enter in the To Location Address you want to appear on the app.
-
Map Size - Set the size of the map. Choose from either small, medium, or large.
Google Maps To/From Location Placement Settings
The Placement Settings for the Component sets which column(s) the Component will appear. Each Page of the app can have a different number of columns that are set in the Layout section of the Page Settings. The following Placement Settings are available for this Component:
- Column Start - Sets the column where the Component will start.
- Column Span - Sets how many columns the Component will span.
- Padding - Sets how much space will appear on the top, bottom, left, and right of the Component. When building a Page with multiple Components, the Padding will determine the overall spacing between Components.
- Display Mode - Sets how the Component is displayed. If Both is selected, the Component will always show. Both are the default option. If Optimal is selected, the Component will only show if the browser supports the app. The main supported browsers are Chrome and Safari. If Degraded is selected, the Component will only show if the browser does not support the app. The main unsupported browser is Internet Explorer.