function ip_geoloc_marker_dimensions in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 ip_geoloc.module \ip_geoloc_marker_dimensions()
Return the height and width of the markers in the selected set.
Return value
string, for example '32 x 42' or '21 x 34'
3 calls to ip_geoloc_marker_dimensions()
- ip_geoloc_admin_configure in ./
ip_geoloc.admin.inc - Menu callback for admin settings.
- ip_geoloc_output_map_multi_location in ./
ip_geoloc_api.inc - Outputs an HTML div placeholder into which will be injected a Google map.
- ip_geoloc_plugin_style_leaflet::render in views/
ip_geoloc_plugin_style_leaflet.inc - Transform the View result in a list of marker locations and render on map.
File
- ./
ip_geoloc.module, line 649 - 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_dimensions() {
$dimensions = variable_get('ip_geoloc_marker_dimensions');
if (empty($dimensions)) {
$directory = ip_geoloc_marker_directory();
$dimensions = strpos($directory, '/amarkers') ? '32 x 42' : '21 x 34';
}
return $dimensions;
}