class mapFieldGetlocations in Static Map 7
Class mapFieldGetlocations.
Hierarchy
- class \MapFieldBase
- class \mapFieldGetlocations
Expanded class hierarchy of mapFieldGetlocations
1 string reference to 'mapFieldGetlocations'
- staticmap_staticmap_field_alter in ./
staticmap.module - Implements hook_staticmap_field_alter().
File
- includes/
mapFieldGetlocations.php, line 11 - Getlocations_fields module integration.
View source
class mapFieldGetlocations extends mapFieldBase {
/**
* {@inheritdoc}
*/
public function provideGeodata(&$items, &$settings) {
$return = array();
foreach ($items as $item) {
$return[] = $item['latitude'] . ', ' . $item['longitude'];
}
return $return;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
mapFieldGetlocations:: |
public | function |
Provide Geolocation data. Overrides MapFieldBase:: |