Creating A Basic Google Map

   Creating a Basic Google Map

This page contains a guide to setting up a Basic Google Map.

Basic Google Map
How to setup a very basic Google Map on your website. This is the HTML code:

The code in the HTML Head initialises the Google Maps API. The code in the HTML Body creates a DIV for displaying the Map.


 * [[Image:Icon_Html_File_20px.png]] Basic Google Map — Fishcakes Wiki Reference File.

Information about Advanced Google Maps functions such as externalising the API key, etc.

Storing Google Maps API Key in External PHP File
It's easiest to call the API key from an external file so you only have to enter it once on each site. 1. Find your root folder by inserting this code into an PHP map file:

2. Save a file api_key_googlemaps.php to your root folder with the following code:

3. Insert into the Header of your PHP Map file:

4. Change your Google API script to: