You are here

function getlocations_leaflet_get_map_layers in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_get_map_layers()
5 calls to getlocations_leaflet_get_map_layers()
getlocations_leaflet_display_options_form in modules/getlocations_leaflet/getlocations_leaflet.module
getlocations_leaflet_entity_type_map in modules/getlocations_leaflet/getlocations_leaflet.module
getlocations_leaflet_field_formatter_view in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.
template_preprocess_getlocations_leaflet_view_map in modules/getlocations_leaflet/views/getlocations_leaflet.views.inc
Preprocess function for getlocations_leaflet_view_map.tpl
theme_getlocations_leaflet_settings_form in modules/getlocations_leaflet/getlocations_leaflet.module
Function

File

modules/getlocations_leaflet/getlocations_leaflet.module, line 2358
getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_leaflet_get_map_layers($map_settings) {
  $map_layers = $map_settings['map_layers'];
  $add = array();

  // cloudmade
  if (module_exists('getlocations_cloudmade')) {
    $add += getlocations_cloudmade_get_map_layers();
  }

  // mapbox
  if (module_exists('getlocations_mapbox')) {
    $add += getlocations_mapbox_get_map_layers();
  }
  if (count($add)) {
    $map_layers += $add;
  }
  $map_settings['map_layers'] = $map_layers;
  return $map_settings;
}