Index: cck_map.inc =================================================================== --- cck_map.inc (revision 10) +++ cck_map.inc (working copy) @@ -1,15 +0,0 @@ -".$field['widget']['label'].""; - - //the $prefix."mapArea" div is targetted by the javascript to insert the map element in. You need an element with this id for the map to display properly. - $output .= "
"; - return $output; - -} - -?> \ No newline at end of file Index: cck_map.module =================================================================== --- cck_map.module (revision 10) +++ cck_map.module (working copy) @@ -220,7 +220,7 @@ break; case 'view': if (count($items[0]) || $field['widget']['always_display']) { - include_once(drupal_get_path('module', 'cck_map') .'/cck_map.inc'); + include_once(drupal_get_path('module', 'cck_map') .'/cck_map.theme'); //use cck_map_nummaps on output to avoid namespace colisions static $cck_map_nummaps =0 ; static $maps_js_added = false; Index: cck_map.theme =================================================================== --- cck_map.theme (revision 10) +++ cck_map.theme (working copy) @@ -1,33 +1,15 @@ ".$field['widget']['label'].""; - - //the $prefix."mapArea" div is targetted by the javascript to insert the map element in. You need an element with this id for the map to display properly. - $output .= ""; - $items[0]['maplat'] ? $lat = $items[0]['maplat'] : $lat = 0; - $items[0]['maplon'] ? $lon = $items[0]['maplon'] : $lon = 0; - $items[0]['mapzoom'] ? $zoom = $items[0]['mapzoom'] : $zoom = 0; - $items[0]['maptype'] ? $mapType = $items[0]['maptype'] : $mapType = ''; - $items[0]['points'] ? $points = $items[0]['points'] : $points = ''; - //google maps doesn't like relative urls for marker images. This totally sucks and I hope to fix it. I appologize. - $tld = $_SERVER['SERVER_NAME']; - - - $output .= ""; - - return $output; - +function theme_cck_map($node, $field, $items, $teaser, $page, $prefix){ + $ouptut = ''; + + if ($field['widget']['label']) + $output .= "