You are here

function ip_geoloc_openlayers_marker_layers in IP Geolocation Views & Maps 7

Same name and namespace in other branches
  1. 8 ip_geoloc.module \ip_geoloc_openlayers_marker_layers()

Return available OpenLayers marker layers for use in a select drop-down.

Return value

array An array indexed by marker layer number (1..n)

2 calls to ip_geoloc_openlayers_marker_layers()
ip_geoloc_plugin_style_bulk_of_form in views/ip_geoloc_plugin_style.inc
The bulk of the plugin style form.
_ip_geoloc_plugin_style_diff_color_table_row_form in views/ip_geoloc_plugin_style.inc
Diffs the color table plugin style row.

File

./ip_geoloc.module, line 694
IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…

Code

function ip_geoloc_openlayers_marker_layers() {
  $num_location_marker_layers = variable_get('ip_geoloc_num_location_marker_layers', IP_GEOLOC_DEF_NUM_MARKER_LAYERS);
  $marker_layers = array();
  for ($layer = 1; $layer <= $num_location_marker_layers; $layer++) {
    $marker_layers[$layer] = t('Marker layer') . " #{$layer}";
  }
  return $marker_layers;
}