Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 2.6


Skip to end of metadata
Go to start of metadata

Restore Google Maps API Key After Upgrading Abiquo

You must back up the Google Maps API key before you upgrade Abiquo and restore it after the upgrade is complete. 

Using Maps in Abiquo

Abiquo 2.4 uses the http://www.openstreetmap.org/ maps in the GUI.

Google Maps has dropped Flash API support. So now Abiquo uses the Google Maps Javascript API v2 to plot the datacenter locations on the map.

Obtaining a Google Maps API Key

Abiquo requires a simple key for the Google Maps Javascript API v2To obtain the key, do these steps:

  1. Open https://developers.google.com/maps/documentation/javascript/v2/introduction
    Under the heading "Obtaining an API Key", click on https://code.google.com/apis/console. Google may ask you to log in and also create a project. Then you will see the Google API Dashboard.
     
  2. On the Google API Dashboard, on the left menu, click Services.


  3. In the list of services on the right, scroll down to "Google Maps API v2". Click to activate the API.



  4. Then on the left menu again, click API Access. 
     
     
  5. To the right, locate "Simple API Access". Copy the value of the "API key:" field (for example For example, AIzPSyDryNhzxEdtfDnGQBKDAtzFqRhjeTUEh_g ) and save it somewhere secure. 

Adding the Google Maps API Key to Abiquo

Now you will add the API key you copied above to the Abiquo Server.

  1. Log in to the Abiquo Server as root
  2. Change to the client-premium directory

    cd /opt/abiquo/tomcat/webapps/client-premium
  3. Edit the index.html file and add the Google Maps key. For example
     

    var googleMapsKey = "AIzPSyDryNhzxEdtfDnGQBKDAtzFqRhjeTUEh_g"

     

  4. Reload Abiquo in your browser, which will log you out. 
     
  5. Confirm the installation by using "View Source" on the Abiquo login page. You should see the API key.



  6. When you log in to Abiquo, you should see the point marking the location of your datacenter.

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" (without any punctuation such as commas) in the Datacenter location for a correct visualization.

Google Maps API Error Message

If you make a mistake when adding the Google Maps API key, the following error message will display. Restore the correct key and the system will work again as usual.