--- gmap_plugin_style_gmap.inc	2008-11-13 22:56:52.000000000 -0800
+++ gmap_plugin_style_gmap.inc.fix	2008-11-13 22:01:03.000000000 -0800
@@ -41,7 +41,6 @@ class gmap_plugin_style_gmap extends vie
     if ($this->options['markers'] == 'nodetype') {
       $this->view->query->add_field('node', 'type', 'gmap_node_type');
     }
-
   }
 
   function render() {
@@ -73,6 +72,19 @@ class gmap_plugin_style_gmap extends vie
           if ($this->options['markers'] == 'nodetype') {
             $markername = isset($markertypes[$row->gmap_node_type]) ? $markertypes[$row->gmap_node_type] : 'drupal';
           }
+          else if ($this->options['markers'] == 'taxonomy') {
+            /* patch to gmap_plugin_style_gmap.inc to enable taxonomy markers */
+            $markername = isset($markertypes[$row->gmap_node_type]) ? $markertypes[$row->gmap_node_type] : 'drupal';
+                  $tid = $row->term_data_tid;
+                  if (db_result(db_query("select count(*) from gmap_taxonomy_term where gmap_taxonomy_term.tid = %d", $tid))){
+                    $result = db_query("select gmap_taxonomy_term.marker from gmap_taxonomy_term where gmap_taxonomy_term.tid = %d", $tid);
+                     while ($data = db_fetch_object($result)) {
+                          // $terms[$data->value] = check_plain($data->value);
+                           $marker = check_plain($data->marker);
+                         }
+                     }
+                     $markername = $marker;
+          }
           if (!isset($offsets[$markername])) {
             $offsets[$markername] = 0;
           }
@@ -126,7 +138,7 @@ class gmap_plugin_style_gmap extends vie
       // @@@ Detect view type automatically?
       '#options' => array(
         'nodetype' => t('By content type (for node views)'),
-        //'taxonomy' => t('By term (for node views)'),
+        'taxonomy' => t('By taxonomy term (for node views)'),
         'static' => t('Use single marker type'),
       ),
       '#default_value' => $this->options['markers'],
