public function IpGeoLocGlobal::markerDimensions in IP Geolocation Views & Maps 8
Return the height and width of the markers in the selected set.
Return value
string For example '32 x 42' or '21 x 34'
File
- src/
Services/ IpGeoLocGlobal.php, line 340
Class
- IpGeoLocGlobal
- Class IpGeoLocGlobal.
Namespace
Drupal\ip_geoloc\ServicesCode
public function markerDimensions() {
$dimensions = $this->config
->get('ip_geoloc_marker_dimensions');
if (empty($dimensions)) {
$directory = $this
->markerDirectory();
$dimensions = strpos($directory, '/amarkers') ? '32 x 42' : '21 x 34';
}
return $dimensions;
}