You are browsing the archive for Google maps.

Generating Keys for Google Maps API Using the APIs Console

March 19, 2012 in Google maps

I’m writing this post because I was asked many times how to generate keys for the web sites that are still using Google Maps APIs version 2 (or using GMaps4JSF that is still using Google Maps APIs version 2). Many users were confused because Google removed the key generation mechanism from the Google signup page and some of the users thought that it is no longer supported to generate keys for Google Maps version 2 applications. Fortunately, generating new keys for GMaps v2 applications is still supported.

Here are the steps that I follow for generating new key for my Google Maps API version 2:

  • Login to the APIs console at https://code.google.com/apis/console with your Google Account.
  • Activate the Google Maps v2 service by clicking the “Services” link of the left menu and then enabling the service as shown in the figure below:

    Figure1

  • Click on the “API Access” link of the left menu, then click on the “Create new browser key …” button, the following dialog will appear to you:

    Figure2

  • Enter the URL of your web site, and then click on the “Create” button, you will find your GMaps v2 key attached in the API access page as shown in the figure below:

    Figure3

Finally you can use this key for your GMaps v2 script include as follows:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABCDEFGHIJK&sensor=false"
            type="text/javascript"></script>

This is all about; I wish that this tip can be useful for you.

References:
https://developers.google.com/maps/documentation/javascript/v2/introduction#Obtaining_Key.

A video presentation about GMaps4JSF

March 17, 2012 in Google maps

This video provides a presentation about the features of GMaps4JSF. I presented it in the JSFDays 2009 international conference which was held in Vienna, Austria. I wish it can be useful.



Skip to toolbar