Google Maps
Google Maps shows a place on a map. JoomMedia uses it in three places:
- the Location button on a media page, which opens a map of the media item's location,
- the Map tab of a media item in the administrator, which shows the location you entered,
- the media map on a group page, which shows where the group's media was taken.
What you need
- A Google Cloud project with billing set up, and an API key with the Maps Embed API (for the Location button and the Map tab) and the Maps JavaScript API (for the group map) enabled.
Set up
- In the Google Cloud Console, create an API key under Credentials and enable the two APIs above.
- Restrict the key to your website's address, so others cannot use it.
- Open the JoomMedia options (Settings > Configuration), go to the Integrations tab and paste the key in Google Maps API Key.
- Save.
Always enter your own key. JoomMedia 6.1.5 has a fallback key written into its code, which is not meant for your site and may stop working at any time.
Give media a location
Open a media item in Content > Media Items and type a place or address in Location, for example Marrakech, Morocco. Google Maps looks the text up when the map is shown.
On the media page, the Location button shows only when the item has a location and Show location button is on in Options > Item Layout. The group map is controlled by Show media map in the Group item layout section.