In order to use advanced Google Maps features on a UXi site, an API key needs to be created on the Google APIs Manager. To avoid usage issues with Google's API, this process should be completed using a Gmail or Google Apps email address belonging to the client.
If you are setting up the API key as a client:
- Skip step 10. Instead, simply copy the provided API key and send it to your project manager or marketing executive.
- Your project manager or marketing executive will provide the URL(s) that will be needed in step 12.
Creating an API Key
Lets get started! To get started, log-in to the Google API Console.
- Click the Projects list at the top of the dashboard.
- Click + Create a project from the top right of the pop up window. (If there is an existing project for the site, select it from the list.)
- Give the project a name that corresponds with the client account.
- Click Create.
- After the project has been created, select it from the Projects List at the top left.
- Click Enable APIs and Services.
- Click Enable.
- Click Create Credentials to create the API key.
- Copy the resulting API key and paste it to the UXi Settings > Map Styles dashboard and save.
- Give the API key a name that corresponds with the site title.
- Select HTTP referrers (web sites) to restrict access to the API key.
Let's use the Bob's Billiards example from above. If the mockup URL is bobsbilliards-mu.websites360.com and the final URL is bobsbilliards.com
12 A: Add the Mockup URL
If the site is still on a mockup .websites360.com subdomain, add that URL. Be sure to add the slash and asterisk at the end. This allows the API key to be used on any page of the site.
12 B: Add the live URL
It is important to add very specific settings here:
Add an asterisk ( * ) and a dot ( . ) at the beginning of the URL to allow for sub-domains and changes from http to https.
Add a forward slash ( / ) and an asterisk ( * ) at the end of the URL.
EXAMPLE : *.bobsbilliards.com/*
- Click Save.
Custom map styles are possible with the use of the Google Maps API.
Add a Custom Map Marker to use as the 'pin' for each location by clicking Add Marker, then uploading or selecting an image from the media library.
Use the Hue / Saturation / Lightness sliders to create a unique, themed map to use in the Locations Finder and Locations Map widgets.