GMap 5.x API

The GMap 5.x API is significantly changed from previous releases. Maps are now proper form elements (though they can still be rendered individually) and the entire system is extensible using a system of "handlers" and "events."

Many of the features that previously required custom javascript were integrated into the core system, and can be activated by switching on "behavior flags," another new 5.x feature. Behavior flags can be toggled in code or by a macro, and the system will use the default value as set in the GMap settings page for anything not directly specified in the map code / macro.

Behavior flags

Behavior flags can be used to change a map's behavior in predefined ways.

Event list

Core events

Implementing GMap InfoWindow Tabs

(Please suggest a better place for this handbook-- themes? snippets? .. there's no "gmap theming" or "third party contrib details"..)

Map settings

The map settings are stored in the #settings key of the map element. The entire settings array is passed to the javascript side and is

Guide maintainers

bdragon's picture