/[drupal]/contributions/modules/gmap/README.txt
ViewVC logotype

Contents of /contributions/modules/gmap/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.13 - (show annotations) (download)
Fri Mar 13 17:10:45 2009 UTC (8 months, 2 weeks ago) by bdragon
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +8 -8 lines
File MIME type: text/plain
The remainder of #392130, reported by gaele:
Rename permissions:
"show node map" -> "view node map"
"show user map" -> "view user map"
"user locations" -> "view user location details"
1 $Id: README.txt,v 1.12 2008/07/15 16:30:29 bdragon Exp $
2
3 Description
4 -----------
5
6 GMap is an API and a related set of modules which allows the integration of Google Maps with a Drupal site.
7
8 gmap.module: The main module. Contains the API, the basic map functions, and an input filter to create macros into working maps with minimal effort.
9
10 gmap_location.module: Provides map features for Location.module (v2 and v3).
11
12 gmap_macro_builder.module: End-user UI for easily creating GMap macros.
13
14 gmap_taxonomy.module: API and utility for changing map markers of for points from Location.module based on taxonomy terms.
15
16 gmap_views.module: GMap <-> Views.module interface. Provides a "GMap View" view type (like "Teaser List" or "Table View") to display items in a View on a Google Map.
17
18 Installation
19 ------------
20
21 * To install, follow the general directions available at:
22 http://drupal.org/getting-started/5/install-contrib/modules
23
24 * You will need a Google Maps API key for your website. You can get one at:
25 http://www.google.com/apis/maps/signup.html
26 Enter your Google Maps API key in the GMap settings page (admin/settings/gmap).
27
28 * You may need to make changes to your theme so that Google Maps can display correctly. See the section on "Google Maps and XHTML" below.
29
30 * If you would like to use GMap macros directly in nodes, you will need to add the GMap Macro filter to an input format (or create a new input format that includes it). Read http://drupal.org/node/213156 for more information on input formats.
31
32 If you are using the HTML filter, it will need to appear BEFORE the GMap filter; otherwise the HTML filter will remove the GMap code. To modify the order of filters in an input format, go to the "Rearrange" tab on the input format's configuration page (Administer > Site configuration > Input formats, then click "Configure" by your format).
33
34 * If you would like to use third party functionality such as mouse wheel support
35 or Clusterer, read thirdparty/README.txt for download links and instructions.
36
37
38 Google Maps and XHTML
39 ---------------------
40
41 * Google Maps may have rendering issues when not using an XHTML doctype; Google recommends that your theme be standards-compliant XHTML, and suggests the following DOCTYPE:
42
43 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
44 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
45
46 **editor's note: remove notes on VML when the api version is forced to >= 2.91.
47 * For polylines to work in Internet Explorer, you will need to add
48 the VML namespace to your <html> tag. Google recommends the following:
49
50 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
51
52 See http://code.google.com/apis/maps/documentation/index.html#XHTML_and_VML
53 for more information. This won't affect you unless you're displaying lines on your Google Maps.
54
55
56 Macro
57 -----
58 **NOTE: This section needs revision still!**
59 **does it though? --bec
60
61 "GMap macros" are text-based representations of Google Maps. A GMap macro can be created with the GMap Macro Builder tool or by hand. Any map parameter not specified by a macro will use the defaults from the GMap settings page (Administer > Site configuration > GMap). There are several places where you may use Gmap macros, mainly:
62 1) GMap settings, like the GMap Location module's settings page.
63 2) Any node where the GMap filter is enabled (as part of the input format).
64
65 A GMap macro will look something like this (see API.txt for syntax details):
66 [gmap markers=blue::41.902277040963696,-87.6708984375 |zoom=5 |center=42.94033923363183,-88.857421875 |width=300px |height=200px |control=Small |type=Map]
67
68 The GMap Macro Builder is a GUI for creating GMap macros; you may use it to create a map with points, lines, polygons, and circles, and then copy and paste the resulting macro text. After you insert the macro into a node, you can edit it using raw values that you get from elsewhere to create a different set of points or lines on the map.
69
70 If you've enabled the gmap_macro_builder.module, you can access the GMap macro builder at the 'map/macro' path (there will be "Build a GMap macro" link in your Navigation menu).
71
72 Note that there are many more options you can set on your maps if you are willing to edit macros by hand. For example, you may add KML or GeoRSS overlays to GMaps, but this option isn't available through the macro builder. Again, see API.txt for syntax details.
73
74
75 User and node maps
76 ------------------
77
78 User and node location maps are made available by gmap_location.module, and work in conjunction with location.module. Any user that has the 'view user map' or 'view node map' permission can see the user or node maps, respectively. These are maps with a marker for every user or node, and are located at the 'map/user' and 'map/node' paths (links to these maps are placed in the Navigation menu).
79
80 Users with the 'view user location details' permission can click markers on the User map to see information on individual users.
81
82 GMap Location also provides two map blocks that work with node locations: a "Location map" block that displays the location markers associated with the node being viewed, and an "Author map" block that displays a marker representing the node author's location.
83
84 GMap Location provides an interactive Google Map to the Location module for setting the latitude and longitude; users must have Location's "submit latitude/longitude" to use this feature.
85
86 Markers
87 -------
88
89 The 'markers' directory contains many useful markers, and you can add custom markers by placing PNG files (markers must be in PNG format) in the markers directory and creating a ".ini" file for them. Use the existing .ini files as a guide--start with "markers/colors.ini".
90
91 If you have created custom markers and are willing to release them under the GPL for inclusion in GMap, please file an issue in the issue queue at: http://drupal.org/project/issues/gmap
92
93 Demo
94 ----
95
96 GMap Macros (GMap module):
97 http://www.webgeer.com/gmapdemo
98
99 GMap Macro Builder module:
100 http://gmap.chicagotech.org/map/macro
101
102 GMap Location module:
103 http://photo-tips.ca/
104
105 GMap Location module user map:
106 http://www.webgeer.com/map/users
107
108 Credit
109 ------
110
111 Gmap for Drupal is part of the Mapedelic suite - a collection of Drupal modules providing a variety of mapping and geographic information functionality. Work on Gmap for Drupal is sponsored by the Chicago Technology Cooperative.
112 http://chicagotech.org
113
114 GMap was refactored and updated for Drupal 5 by Brandon Bergren (Bdragon).
115 http://drupal.org/user/53081
116
117 GMap for Drupal 4.6-4.7 was written by James Blake
118 http://www.webgeer.com/James
119
120 Thanks to the following for their contributions:
121 * Robert Douglass, who revamped crucial parts and cleaned up many smaller things.
122 * Paul Rollo, who explained how to include a location map in a block.
123 * Nick Jehlen, who commissioned much of the initial work of gmap_location.module for the website http://enoughfear.com.

  ViewVC Help
Powered by ViewVC 1.1.2