Use Google Maps API V3 to create an interactive map, in two steps to illustrate, the first is the preparation of work, the second is how to invoke the interface for Google Maps display.
1. Preparatory work
If you want to call the Google Maps interface, you first need to have a free Google Maps API key. To have a free API Key, you first have to have a Google account. To apply for Google's account, you first have to be able to visit Google's website to sign up for Gmail. It's hard to get to Google's website on the mainland, and how to access Google's website is not the focus here, assuming you've been able to access Google's website and have a Google account. Next talk about how to apply for a free Google Maps API Key on Google.
First, visit https://code.google.com/apis/console/and log in with your Google account.
After the login successful, the following interface will appear:
Click the "Create Project" button.
Find the search Google Maps API v3 in the list of services and click on Google maps JavaScript API v3, as shown below:
Then click "Enable API" to open the server, as shown below:
When enabled, as shown.
Click " go to API console to view the report" and jump to the following page:
Click "Api Access" in the list on the left, find "Create new Server Key" below, click Open, enter the content, do not input also does not matter.
Wait a minute. Content that will appear:
Record the above API key, which is the key for future Google Maps API access.
2.Google Map API
Google Maps API