function getlocations_setup_map in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_setup_map()
- 6 getlocations.module \getlocations_setup_map()
- 7.2 getlocations.module \getlocations_setup_map()
Function to setup the map scripts
Parameters
array $defaults: Required. the current settings. Sets up the call to googlemaps, css and the relevant getlocations js in html head
16 calls to getlocations_setup_map()
- getlocations_fields_getmap in modules/
getlocations_fields/ getlocations_fields.module - input map
- getlocations_fields_getmap_show in modules/
getlocations_fields/ getlocations_fields.module - Used by theme for display output.
- getlocations_leaflet_entity_type_map in modules/
getlocations_leaflet/ getlocations_leaflet.module - Function
- 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.
- getlocations_mapquest_entity_type_map in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
File
- ./
getlocations.module, line 1007 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_setup_map($defaults, $googleonly = FALSE, $sv = FALSE, $keyonly = FALSE) {
static $getlocations_mapid = 0;
// Generate unique Map ID.
$getlocations_mapid++;
$mapid = 'key_' . $getlocations_mapid;
if (!$keyonly) {
getlocations_setup_js($defaults, $googleonly, $sv);
}
return $mapid;
}