@@ -451,28 +476,148 @@ Addon modules can add more types of overlays.
...
@@ -451,28 +476,148 @@ Addon modules can add more types of overlays.
</dl>
</dl>
</li>
</li>
<li><aname="ma-mn">markername</a>
<dl>
Attribute:
<dt>Values:</dt>
markername
<dd>The name of the icon set to use (String)</dd>
Values:
<dt>Description:</dt>
The name of the icon set to use (String)
<dd>
Description:
Marker icons are located in the GMap module's 'markers' directory.
Marker icons are located in the GMap module's 'markers' directory.
GMap reads the .ini files to find available markers.
GMap reads the .ini files to find available markers.
Example:
</dd>
"Light Blue"
<dt>Example:</dt>
Notes:
<dd>"Light Blue"</dd>
Some marker sets
<dt>Notes:</dt>
sequential markers are available; for example, if the markername is set to "number", then the icons in the marker directory named 'number1.png', 'number2.png' etc. will be used. If these don't exist 'number.png' would be used. If that doesn't exist then the default marker will be used.
<dd>Some markers have multiple icons. Use <ahref="#ma-offset">offset</a> to choose which one to show.</dd>
</dl>
</li>
<li><aname="ma-offset">offset</a>
<dl>
<dt>Values:</dt>
<dd>The index of the marker to use (Integer)</dd>
<dt>Description:</dt>
<dd>For markernames with multiple icons, you can choose which one to use.</dd>
<dt>Example:</dt>
<dd>0</dd>
<dt>Notes:</dt>
<dd>
<p>The code will automatically wrap around if you simply increment offset every marker.</p>
<p>You do not need to know how many icons are actually assigned to the marker set.</p>
</dd>
</dl>
</li>
<li><aname="ma-text">text</a>
<dl>
<dt>Values:</dt>
<dd>HTML or Text to show in info window on marker click (String)</dd>
<dt>Description:</dt>
<dd>
<p>This will set up an info window popup when you click the marker.</p>
<p>If you specify as a string, it will make a regular GInfoWindow.</p>
<p>If you specify as an array, it will make a tabbed GInfoWindow, where the
array keys are the tab titles, and the array values are the contents of the
tabs.</p>
</dd>
<dt>Example:</dt>
<dd>"Point A"</dd>
<dt>Notes:</dt>
<dd>
Anything put in here will be sent inline to the javascript side, so if you are
planning on using complex popups, you may want to consider using <ahref="ma-rmt">rmt</a> instead.
</dd>
</dl>
</li>
<li><aname="ma-tabs">tabs</a>
<dl>
<dt>Values:</dt>
<dd>array('' => '',...)</dd>
<dt>Description:</dt>
<dd>
Tab titles and HTML or text to show in info window on marker click.
</dd>
<dt>Example:</dt>
<dd>
<pre>
array(
'Name' => '<em>United States</em>',
'Currency' => 'United States Dollar',
);
</pre>
</dd>
<dt>Notes:</dt>
<dd>
Anything put in here will be sent inline to the javascript side.
</dd>
</dl>
</li>
<li><aname="ma-link">link</a>
<dl>
<dt>Values:</dt>
<dd>A url to go to when the marker is clicked. (String)</dd>
<dt>Description:</dt>
<dd>
This will program the marker to act like a hyperlink.
</dd>
<dt>Example:</dt>
<dd>"http://google.com/"</dd>
<dt>Notes:</dt>
<dd>
It is pointless to specify <ahref="#ma-text">text</a> or <ahref="#ma-tabs">tabs</a>
at the same time as link, as link causes immediate navigation away from the map.
</dd>
</dl>
</li>
<li><aname="ma-foo">rmt</a>
<dl>
<dt>Values:</dt>
<dd>Path to append to the rmtcallback. (String)</dd>
<dt>Description:</dt>
<dd>
When using ahah markers, this should be set to the identifiers expected by
your callback.
</dd>
<dt>Example:</dt>
<dd>"15/0"</dd>
<dt>Notes:</dt>
<dd>
If you need to pass multiple identifiers, just seperate them with slashes.
</dd>
</dl>
</li>
Attribute: text
<li><aname="ma-opts">opts</a>
Values: "map bubble text"
<dl>
Description: text and/or HTML to be displayed in the map bubble when the marker is clicked
<dt>Values:</dt>
Example: "Point A"
<dd>array('' => ...,...)</dd>
Notes: @@@ Bdragon mentioned an "array tabs trick"??
<dt>Description:</dt>
<dd>
<p>Filling out this parameter will allow you to override the <em>GMarkerOptions</em>
that a marker is initialized with.</p>
<p>The <em>icon</em> key is automatically filled in, you can't set it here.</p>
</dd>
<dt>Example:</dt>
<dd>
<pre>
array(
'bouncy' => TRUE,
);
</pre>
</dd>
<dt>Notes:</dt>
<dd>
The documentation for <em>GMarkerOptions</em> can be found <ahref="http://code.google.com/apis/maps/documentation/reference.html#GMarkerOptions">here</a>.