Setting Up Google Maps My Maps and KML Files
From Fishcakes Wiki
Setting Up Google Maps My Maps and KML Files
Guide to setting up Google Maps My Maps and Google Maps KML Files for use with the Google Maps Wordpress Plugin and Exponent CMS Google Maps Simple module.
Contents |
Using Google Maps to Create Maps
A guide to creating Maps with Google Maps and My Maps.
Google Maps Country Domains
To create a map, go to the Google Maps Domain for your country and use their controls to setup the map you want to display following the instructions below.
- maps.google.com.au — Google Maps Australia & New Zealand
- maps.google.be — Google Maps Belgium
- maps.google.ca — Google Maps Canada
- maps.google.dk — Google Maps Denmark
- maps.google.fi — Google Maps Finland
- maps.google.fr — Google Maps France
- maps.google.de — Google Maps Germany (Deutschland)
- maps.google.it — Google Maps Italy
- maps.google.co.jp — Google Maps Japan
- maps.google.nl — Google Maps Netherlands
- maps.google.no — Google Maps Norway
- maps.google.ru — Google Maps Russian Federation
- maps.google.es — Google Maps Spain (España)
- maps.google.se — Google Maps Sweden
- maps.google.co.uk — Google Maps United Kingdom & Ireland
- maps.google.com — Google Maps United States
Setup a Basic Google Map
Instructions for setting up a basic map at Google Maps.
- Use the Pan Zoom tool or the Search Maps tool to find the location you want to display on your Map.
- Double-click on the most important point on the map to set your Map Center or if you've used the Search Maps tool use the Search Results to select the correct location.
- Use the Zoom controls to set the map to the Zoom Level you want to display.
- Click on the Overview control to toggle the Overview Map to on or off.
- Use the Map Type control to set the view you want to display: Map, Satelite or Hybrid.
Setup a Custom Google My Map
If you want to add your own Map Markers then use the My Maps widget to save your map.
Note: you can skip these steps if you don't wish to customise your map.
- Follow the instructions above for basic setup of your Map.
- Click on the My Maps tab then click on the Create new map link.
- Save the Title and Description for your map.
- Use the map tools to add Placemarks, Lines and Shapes to your Map.
- When complete, Save your Map.
- Once saved, reload your map by selecting it from the Created by me list.

Note: this is necessary to refresh the Map Link for the next step.
Copy the Map Link
Now you're ready to copy the link for your map into the Google Maps Simple Module.
- Click Link to this page on the top-left corner of your Google Map.
- Cop the link location to your clipboard.
- Return to Exponent and load your Google Maps Simple Module.
- Either Edit an existing map or Add a new map.
- Paste this Google link into the Google Map Link field.
- Input the other Map Details for your Map.
- Set which Map Controllers you want to display.
- Input your Map Title, Body Text and any Notes.
- Click Save and your map should now be displayed.
Editing a Custom Map
If you have saved your map to My Maps then changes made with Map Tools to your My Map layer will be automatically reflected on your Google Maps Simple Map.
- Use the map tools to add Placemarks, Lines and Shapes to your Map.
- When complete, Save your Map.
- Return to your Exponent website and hit refresh to see your updated Map.
Note: this only changes things saved in your My Map layer. To change the Map View see below.
Changing the Map View
If you want to change overall look of your map, you need to create a new Map Link.
- Go to your Map and make any changes to the Zoom Level, Map Type or Overview.
- When complete, Save your Map.
- Repeat the steps in Copy the Map Link as outlined above.
Troubleshooting
Solutions to a few common problems.
- Map doesn't display — make sure the Google Maps Link you are pasting is correct and complete. A correct URL must have the following parameters:
- ll= required to define latitude and longitude for center of the map.
- z= required to define the initial zoom factor.
- t= option to define if map is normal, satellite or hybrid.
- om= option to show or not the overview map on bottom-right.
- msid= required if you are pasting My Maps from Goole Maps website.
- Map displays the wrong location or zoom level — this is usually caused by copying a Google Map Link which is set to a previous edit. If you're using a My Map then just click on the Map link in the Created by me list to refresh the link before copying.
Using a KML File to Create Maps
A guide to creating Maps with KML Files. This is a bit more complicated than using the Google Maps Link method, but does offer more customisation options for those familiar with the Google Maps API.
Please note, that the files outlined here are an old version of KML. Sorry but this Plugin doesn't support the current Google Maps and Google Earth KML files.
Setting Up a Basic KML File
Create a <dl> XHTML KML File with Map center point.
<dl style="visibility: hidden;" title="googlemap;w:100%;h:450"> <dt><a href="http://maps.google.com/?z=15&ll=51.529386,-0.1273941&om=1&t=m"></a></dt> </dl>
- Set
dlto start the Definition List. - Set
style="visibility: hidden;"to hide the Map Markers until the Map has rendered. Other css style parameters can also be set. - Set
title="googlemap;to initialise the Google Map Plugin. - Set
w:100%;h:450to the width and height you want for the Map.
- Set
dtto start the Definition Tag for the Map Center. - Set
z=to define the desired Zoom Level. Fromz=1toz=17. - Set
ll=to define the latitude and longitute for Map Center. - Set
om=to control display of Overview Map. Set toom=1for Overview on. Set toom=0for Overview off. - Set
t=to control what Map Type will be displayed. Set tot=mfor normal Map. Set tot=kfor Satellite map. Set tot=hfor Hybrid map. - Set
/dtto end the Definition Tag.
- Set
/dlto end the Definition List.
Your KML File is now ready to be uploaded to the Google Maps Simple Module.
Setting Up a KML File with Markers
Create a KML File consisting of a <dl> XHTML element list of a center points and markers with their text balloons.
<dl style="visibility: hidden;" title="googlemap;w:100%;h:450"> <dt><a href="http://maps.google.com/?z=15&ll=51.529386,-0.1273941&om=1&t=m"></a></dt> <dt><a href="http://maps.google.com/?ll=51.52938484639296,-0.1273941993713379">map</a></dt> <dd><b>The British Library</b><br<96 Euston Rd<br>London, NW1 2DB</dd> </dl>
- Setup the basic file as outlined above.
- Set
dtto start the Definition Tag for a Marker. You can add as many markers as you like. - Set
ll=to define the latitude and longitute where the Marker will appear. Make sure this is within the range of your Map! - Set
/dtto end the Definition Tag for this Marker.
- Set
ddto start the Definition Delimiter for a Marker's popup window contents. - Insert yourtext as either plain text or HTML. This can contain almost any HTML including image links.
- Set
/ddto end the Definition Tag for this Marker.
Once you've added a few Markers to your KML File, upload it to the Google Maps Simple Module to view.
More About KML Files
For more information about KML files, and help setting up your own, see these resources:
- Use the Sample KML File
googlemaps/sample.kmlincluded with the Google Maps Simple module to get an idea of what a KML file should look like. - There is also a KML Test File
googlemaps/testfile.htmlwhich you can paste your KML list into to test your Markers are ok without needing to upload it to Module. - To find Latitude and Longitude for your map use the Mapki Latitude & Longitude Retriever.
- For information about encoding your KML URL to enable various Google Map features, see Mapki Google Map Parameters. These should be added to the URL in the first <dt> which sets the Zoom Level and Map Center.
Links for this Page
- Mapki Latitude & Longitude Retriever — excellent tool for finding the Latitude and Longitude by pointing at a map.
- Mapki Google Map Parameters — information about encoding your KML URL to enable various Google Map features.
- Google Maps Plugin for Wordpress — info about the Plugin from the original developer Avi Alkalay.
Google Maps Links
Official Google Maps Links
- Google Maps Home Page — official site.
- Get Google Maps API Key — you need a key for each domain or sub-domain on which you want to display maps.
- Google Maps API Documentation — concepts and examples.
- Google Maps API Reference — reference guide to all functions.
- Official Google Maps API Blog — good resource for finding out what's new.
- Google Maps Tour — find out what Google Maps can do.
- Google Maps User Guide — understanding how to use Google Maps.
- Google Mashup Editor Getting Started Guide — the place to start when making a Google Maps mashup.
Unofficial Google Maps Links
- Mapki Google Map Parameters — complete list.
- Mapki Get Latitude & Longitude — click for lat/lon.
- www.googlemapsbook.com — Google Maps Book website with blog, links and source code downloads.
- Google Maps Troubleshooting Group
- Integrating Google Maps into Your Web Applications — basic tutorial.
- Complete Google Maps Tutorial — rather techie but quite comprehensive tutorial from Mike Williams.
- List of Google Map Variables — quite useful.
Great Google Maps Sites
- Real Liverpool — excellent site with customised Google Maps.
- Charlottetown Transit Map — excellent Map with full source code available and tutorial on how to implement it.
Other Google Applications
- Google Trends — compare the world's interest in your favourite topics.

