Table of Contents |
---|
Using Google Maps in Abiquo
...
To add the API key you copied above to the Abiquo Server do these steps:
Log in to the Abiquo Server as root
Change to the UI directory
Code Block cd /var/www/html/ui/config
Back up the client-config-custom.json file, for example
Code Block cp client-config-custom.json ~/client-config-custom.json.backup
If necessary, edit client-config-custom.json to enable Google Maps
Code Block "client.google.maps.enabled": true,
Add the Google Maps key. For example:
Code Block "client.google.maps.key": "asdasdDryNhzxEdtfDnGQBKDAtzFqRhjeTUEh_g"
Reload Abiquo in your browser, which will log you out.
Confirm the installation by using "View Source" on the Abiquo login page. You should see the API key.
When you log in to Abiquo, you should see the pins marking the locations of your datacenter.
If there are no valid credentials or datacenters with locations, the map will be centred on Barcelona, Spain. See Configure map defaults
Troubleshooting
Improve datacenter location details: If your datacenter is not correctly plotted, try adding more details of the location. For example, if your datacenter is located in Barcelona, Venezuela and you enter Barcelona, the map will show the location as Barcelona in Spain. In this case, you would enter "Barcelona, Venezuela" in the datacenter location for a correct visualization.
Google maps charges for map usage, see https://developers.google.com/maps/documentation/javascript/usage#usage_limits