You are here

function gm3_region_library in Google Maps API V3 7

Implementation of hook_library().

FIXME - Select countries. Click on a region could bring up an option to select the subregions (TDWG 4).

File

gm3_region/gm3_region.module, line 48

Code

function gm3_region_library() {
  return array(
    // Enable the clicking of countries.
    'region' => array(
      'title' => t('Google Maps Javascript API V3: Region selection'),
      'website' => 'http://code.google.com/apis/maps/',
      'version' => '3',
      'js' => array(
        array(
          'data' => drupal_get_path('module', 'gm3_region') . "/js/gm3_region.region.js",
        ),
        array(
          'data' => array(
            'gm3_region' => array(
              'callback' => url('gm3_region/callback'),
              'callback2' => url('gm3_region/callback2'),
            ),
          ),
          'type' => 'setting',
        ),
      ),
      'dependencies' => array(
        array(
          'gm3',
          'gm3.polygon',
        ),
      ),
    ),
  );
}