Abiquo uses Google Maps for the map display, which requires the server to have Internet access. The map view is optional and statistics can be shown instead. In new installations, the map view is the default for Infrastructure view. In upgraded installations, to enable the map view, set the appropriate property in the client-config-custom.json file. To plot the datacenter locations on the map, Abiquo uses the Google Maps Javascript API v3, and you cannot use a key for an older version. Add the Google maps API key to the client-config-custom.json file as described below. |
You should add a browser key for accessing the Google Maps Javascript API v3.
If you were already using Google Maps with a previous version of the API, to obtain the key, follow the instructions at: https://cloud.google.com/maps-platform/user-guide/account-changes/
If you are a new user, follow the instructions at: https://developers.google.com/maps/gmp-get-started
You will need to obtain a browser key that can use the Google Maps Javascript API.
To add the API key you copied above to the Abiquo Server do these steps:
Change to the UI directory
cd /var/www/html/ui/config |
Back up the client-config-custom.json file, for example
cp client-config-custom.json ~/client-config-custom.json.backup |
If necessary, edit client-config-custom.json to enable Google Maps
"client.google.maps.enabled": true, |
Add the Google Maps key. For example:
"client.google.maps.key": "asdasdDryNhzxEdtfDnGQBKDAtzFqRhjeTUEh_g" |
If there are no valid credentials or datacenters with locations, the map will be centred on Barcelona, Spain. See Configure map defaults