Revision cdb6af36
Added by Andreas Kohlbecker over 11 years ago
7.x/modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
327 | 327 |
|
328 | 328 |
$out = '<div id="openlayers">'; |
329 | 329 |
$out .= '<div id="openlayers_map" class="smallmap"'; |
330 |
$out .= ' style="width: ' . $width . 'px; height:' . ($width / 2) . 'px"'; |
|
330 |
if($width) { |
|
331 |
$out .= ' style="width: ' . $width . 'px; height:' . ($width / 2) . 'px"'; |
|
332 |
} |
|
331 | 333 |
|
332 | 334 |
// Additional query parameters as set in the data portal admin section. |
333 | 335 |
$labels_on = variable_get('cdm_dataportal_geoservice_labels_on', 0); |
Also available in: Unified diff
code cosmetics in openlayers_map.js and more robust handling of map width