This is a port of GMAP-ARRAY-DICTIONARY.txt to advanced_help. It's a work in progress.

This file defines the attributes available in GMap arrays. This is fairly similar to the GMAP-MACRO-DICTIONARY.txt, but distinct in that it addresses array keys and syntax specific to GMap arrays.

Defaults for map attributes can be set on the GMap settings page.

TOP LEVEL ATTRIBUTES

The top level of a GMap array will look something like this:
  $map = array(
    'id' =>                  // id attribute for the map
    'width' =>               // map width in pixels or %
    'height' =>              // map height in pixels
    'latitude' =>            // map center latitude
    'longitude' =>           // map center longitude
    'zoom' =>                // zoom level
    'maxzoom' =>             // Maximum zoom level for autozoom.
    'extent =>               // map bounds
    'maptype' =>             // baselayer type
    'controltype' =>         // size of map controls
    'align' =>               // CSS alignment for map div.
    'mtc' =>                 // Map type control.
    'baselayers' => array(), // Enabled map baselayers.
    'styles' => array(),     // Shape style definitions.
    'behavior' => array(),   // various map behavior flags
    'rmtcallback' =>         // Remote callback for ahah info windows.
    'markers' => array(),    // array of points on the map
    'shapes' => array(),     // array of shapes to overlay on the map
  );

Here is a description of the top level keys of the map array.

OVERLAYS

There are three types of overlays you can place on a map by default: markers, shapes, and feeds. Each of these classes is represented by a sub-array in the GMap array. Addon modules can add more types of overlays.

MARKERS

Markers are point features on a map. They are placed somewhere on the globe and can optionally be programmed to show an information window when clicked.

Any additional keys / values you put in a marker array will be passed to the javascript side automatically. This is very useful when writing custom code.

  $marker = array(
    'latitude' => 0.000,            // Marker latitude.
    'longitude' => 0.000,           // Marker longitude.
    'markername' => 'smileyface',   // Name of marker set to use.
    'offset' => 0,                  // Offset in marker set.
    'text' => 'popup text',         // GInfoWindow contents.
    'tabs' => array(),              // Tabbed GInfoWindow contents.
    'link' => 'http://google.com',  // Use marker as hyperlink.
    'rmt' => '',                    // Argument to pass for rmt
    'opts' => array(),              // Use custom GMarkerOptions.
    'options' => array(),           // Misc. behavior modifications.
  );

Here is a description of the keys of a marker array.

SHAPES

Shapes are the non point features on the map.

  $shape = array(
    'type' => '',
    'points' => array(),
    'center' => array(0,0),
    'radius' => 0,
    'point2' => array(0,0),
    'numpoints' => 10,
    'style' => array(),
  );