function locationmap_static_image_url in Location Map 8.2
Same name and namespace in other branches
- 7.2 locationmap.module \locationmap_static_image_url()
- 7 locationmap.module \locationmap_static_image_url()
@todo Please document this function.
See also
1 call to locationmap_static_image_url()
- theme_locationmap_block_image_link in ./
locationmap.module - Format static image for display in the block.
File
- ./
locationmap.module, line 300
Code
function locationmap_static_image_url($w = 200, $h = 150) {
$image_url = 'http://maps.googleapis.com/maps/api/staticmap?zoom=' . variable_get('locationmap_zoom', 5);
$image_url .= "&size={$w}x{$h}";
$image_url .= '&markers=' . variable_get('locationmap_lat', 0) . ',' . variable_get('locationmap_lng', 0);
$image_url .= "&sensor=false";
return $image_url;
}