This project is not covered by Drupal’s security advisory policy.


A collection of developer tools for quick Google map creation from Drupal code. Uses Google map API version 3.

This is utility module - you need this module only if some other module requires it.

Main goal of this module is to offer developers very light and easy PHP implementation of Google Map API version 3 for Drupal.


  • 2013-Apr-13 - new features: map geolocation, relative marker coordinates and draggable markers with dragging event that updates custom lat/lng value input form fields.

How to use it

Check example page (you need to enable module to load examples) for couple of short examples


. Note that you do not need to enable module to use it API calls, you just need to include file in your code.

Basically you need to do 3 things to get working gmap:

  1. Load file
    module_load_include('inc', 'gmap3_tools');
  2. Call gmap3_tools_add_map() function from API file with appropriate map configuration array
        // Map example with some custom options and 2 markers.
        'mapId' => 'gmap-canvas',
        'mapOptions' => array(
          'zoom' => 8,
        'markers' => array(
          gmap3_tools_create_marker(-35, 150, 'Marker with info window', 'Marker info window content.'),
          gmap3_tools_create_marker(-35, 150.5, 'Marker without info window'),
        'gmap3ToolsOptions' => array(
          'defaultMarkersPosition' => GMAP3_TOOLS_DEFAULT_MARKERS_POSITION_CENTER,

    This function will initialize needed js code and create google map js definition for you.

  3. Last thing you need to do is add HTML element with 'gmap-canvas' id in your Drupal output - this element will hold Google map.
    $page_output .= '


Check README.txt for more documentation and gmap3_tools module file for code examples.


This module is a product of MontenaSoft web development company.

Project Information