You are here

protected function LeafletGeoJSONBean::getMapOptions in Leaflet GeoJSON 7.2

Same name and namespace in other branches
  1. 7 modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc \LeafletGeoJSONBean::getMapOptions()
1 call to LeafletGeoJSONBean::getMapOptions()
LeafletGeoJSONBean::form in modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc
Builds extra settings for the block edit form.

File

modules/leaflet_geojson_bean/plugins/bean/leaflet_geojson_bean.inc, line 143
Leaflet GeoJSON bean plugin.

Class

LeafletGeoJSONBean
@file Leaflet GeoJSON bean plugin.

Code

protected function getMapOptions() {
  $map_options = array();
  foreach (leaflet_map_get_info() as $key => $map) {
    $map_options[$key] = t($map['label']);
  }
  return $map_options;
}