function ip_geoloc_marker_directory in IP Geolocation Views & Maps 8
Same name and namespace in other branches
- 7 ip_geoloc.module \ip_geoloc_marker_directory()
Returns the path to the configured marker directory.
5 calls to ip_geoloc_marker_directory()
- AdminConfigureForm::buildForm in src/
Form/ AdminConfigureForm.php - Form constructor.
- IpGeoLocAPI::outputMapMultiLocation in src/
Services/ IpGeoLocAPI.php - Outputs an HTML div placeholder into which will be injected a Google map.
- ip_geoloc_marker_colors in ./
ip_geoloc.module - Return available marker colors for use in a select drop-down.
- ip_geoloc_marker_dimensions in ./
ip_geoloc.module - Return the height and width of the markers in the selected set.
- ip_geoloc_output_map_multi_location in ./
ip_geoloc_api.inc - Outputs an HTML div placeholder into which will be injected a Google map.
3 string references to 'ip_geoloc_marker_directory'
- IpGeoLocGlobal::markerDirectory in src/
Services/ IpGeoLocGlobal.php - Returns the path to the configured marker directory.
- IpGeoLocViewsPluginStyle::pluginStyleBulkOfForm in src/
Services/ IpGeoLocViewsPluginStyle.php - The bulk of the plugin style form.
- ip_geoloc_plugin_style_bulk_of_form in src/
Plugin/ views/ style/ ip_geoloc_plugin_style.inc - The bulk of the plugin style form.
File
- ./
ip_geoloc.module, line 557 - 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_marker_directory() {
$path = drupal_get_path('module', 'ip_geoloc');
$config = \Drupal::config('ip_geoloc.settings');
$marker_directory = $config
->get('ip_geoloc_marker_directory');
return $marker_directory ? $marker_directory : "{$path}/" . (\Drupal::moduleHandler()
->moduleExists('leaflet') ? 'amarkers' : 'markers');
}