--- gmap_taxonomy.module.orig	2010-09-13 13:23:07.000000000 +0000
+++ gmap_taxonomy.module	2010-09-13 13:22:53.000000000 +0000
@@ -130,18 +130,12 @@ function gmap_taxonomy_nodeapi(&$node, $
       $status = variable_get('gmap_taxonomy_vocabs', array());
       $marker = '';
       if (isset($node->taxonomy) && is_array($node->taxonomy)) {
-        foreach ($node->taxonomy as $voc => $terms) {
-          if (isset($status[$voc]) && $status[$voc]) {
-            $t = $terms;
-            if (!is_array($t)) {
-              $t = array($t);
-            }
-            foreach ($t as $term) {
-              $result = db_query('SELECT marker, tid FROM {gmap_taxonomy_term} WHERE tid = %d', $term);
-              if ($m = db_fetch_object($result)) {
-                $marker = $m->marker;
-                $markertid = $m->tid;
-              }
+        foreach ($node->taxonomy as $tid => $term) {
+          if (isset($status[$term->vid]) && $status[$term->vid]) {
+            $result = db_query('SELECT marker, tid FROM {gmap_taxonomy_term} WHERE tid = %d', $tid);
+            if ($m = db_fetch_object($result)) {
+              $marker = $m->marker;
+              $markertid = $m->tid;
             }
           }
         }
