- // Get center and zoom level from $args // TODO: What happens if the values are no correct e.g. float?
- if (isset($args['lat'])) $latitude = floatval($args['lat']); else $latitude = 47.267648; // latitude as float value
- if (isset($args['lon'])) $longitude = floatval($args['lon']); else $longitude = 11.404655; // longitude as float value
- if (isset($args['zoom'])) $zoom = intval($args['zoom']); else $zoom = 10; // Google Zoom Level
- if (isset($args['width'])) $width = intval($args['width']); else $width = null; // null corresponds to 100%
- if (isset($args['height'])) $height = intval($args['height']); else $height = 450;
- $latitude_s = sprintf('%.6F', $latitude);
- $longitude_s = sprintf('%.6F', $longitude);
- $width_s = is_null($width) ? '100%' : $width . 'px';
- $height_s = $height . 'px';
- $show_sledruns = ($tagname == 'wrgmap');
-