Place the map at the specified location (header position).
Obtain the API key in advance from the Google Maps site. To obtain an API key, please refer to the instructions
https://developers.google.com/maps/documentation/javascript/get-api-key
provided.
Set Place, API key, Address or Latitude/Longitude, Zoom, and Marker Name.
Specify the location to display the map.
Enter the API key of Google Maps.
You can obtain the API key from the Google Maps site.
https://cloud.google.com/maps-platform/?hl=ja https://developers.google.com/maps/documentation/javascript/get-api-key?hl=ja
Specify the position to be displayed on the map.
When specifying an address, you can provide detailed information down to the block number, or you can use a general address such as the name of the city or town. For well-known buildings, such as the “Tokyo Skytree,” it is possible to display only the name of the building. This is one of the features of Google Maps.
When specifying a location using latitude and longitude, separate the latitude and longitude values with a comma like follows:
34.687315, 135.526201
If the field includes address information, you can use an expression to pass its value. If the fields are divided into “Prefecture,” “Address 1,” and “Address 2,” specify them as follows.
${Prefecture} ${Address 1} ${Address 2}
Enter the zoom level.
As outlined in the Google Maps documentation, please use the following guidelines:
https://developers.google.com/maps/documentation/javascript/tutorial?hl=ja#MapOptions
Set the name of the marker. If omitted, if “Address or Latitude/Longitude” is specified as an address, the address will become the marker name.
The “Map Display on Detail Pages” action cannot be used in on the record list page.
The “Right of Menu in List Page” and “Under Menu in List Page” actions are only applicable to the record list page.
The mobile view only supports “Under Menu in List Page.”
If you execute the “Show Map in Header” action twice with the same action number, it is considered the same map, and only one map will be displayed. In the second action, the currently displayed map position will not be changed.
If you execute the “Show Map in Header” action with different action numbers, each map will be displayed separately.
If you want to increase the markers, instead of repeatedly executing “Show Map in Header,” use the “Add Marker to Map” action.