Hi,

I'm having some trouble getting GMap Taxonomy to work to display different icons for different taxonomy. I have it enabled and I have a map view created that works to display several test nodes that I've created, both with a taxonomy term assigned, but they noly display with a single marker type.

A few places where I thought I was close:

If I go to Settings for the GMap style, under Marker handling, I've tried selecting "By term (for node views)" but that doesn't take me to any further options to set the marker type for each taxonomy term. Maybe that is done elsewhere?

The other place I felt close was on the Site config->GMap Location page. There's a section to set the Markers per content type, but no mention of taxonomy.

I suspect there's some place to do settings for the module that I'm missing or something I don't know about setting up views. Should I be using Sort by, maybe?

Any tips would be much appreciated!

Liz

Comments

alanwilson’s picture

You set the marker type when you edit the taxonomy. Go to Content management › Taxonomy › Edit term for a term in the taxonomy and look at the bottom for a pull-down box with the title "GMap Marker".

Your confusion is understandable, I didn't see it at first either. I'm doing exactly the same thing as you right now. I'm new to Drupal and I made my first GMap Location view just this morning. It seems to work about as I'd like, though I want to install some new markers. (I found your question via a Google search on that topic.)

lizaderhold’s picture

Awesome, thanks very much! I have it working now. I thought I had poked around in Taxonomy but I guess I didn't enough.

Next up will be figuring out how to add custom images for the markers. Looks like I've found a starting point here: http://drupal.org/node/82037

alanwilson’s picture

Maybe a helpful note: I was under the impression that after you installed new markers and created an appropriate .ini file that you just needed to use the "Regenerate marker cache" button in the GMap settings. But, it seems that doesn't work for me. My tests indicate that it is actually reading the files (a bad filename will cause an error) and it seems to update the two gmap entries in the 'drupal_cache' table of the database. But, the marker pull-down menus don't change at all.

Instead, you need to clear the entire cache via the button at the bottom of Administer › Site configuration › Performance. (Or I found I could just delete the two gmap rows in the drupal_cache table by hand.)

lizaderhold’s picture

Yeah, I didn't notice the regenerate marker cache button you mentioned, but I decided to install the "devel" module, and I made the menu for it visible so now it's easy to clear the site cache any time.

Mark Linden’s picture

Trying to get GMap Taxonomy Markers to work under D6 with Views (aka Views2) Can anyone confirm that this works out of the box under GMap 6.x-1.1-rc1? I'm still getting the same default blue Drupal marker. Are there some patch that needs to be applied?

Any help would be greatly appreciated!

lizaderhold’s picture

Yep, I got mine working. I'll try to remember the steps:

Enable appropriate modules including gmaps taxonomy

Go to the Taxonomy you want to use for determining markers, and click edit vocabulary. At the bottom it says enable Gmap markers. Make sure that is checked.

Then click list terms, and edit each term. It should allow you to choose a marker for each.

In the view you've created (a Node view) you'll need to edit the settings after you set the style to GMap. Click the little gear. Under Marker handling, select "By term (for node views)"

If you've done all that, I'm not sure why it isn't working.

Mark Linden’s picture

Setting "Views->GMap->gear settings->By term" did the trick. Thanks so much!

Osiride’s picture

so... seems good but doesn't work for me

drupal 6.10
gmap 6.x-1.1-rc1
location 6.x-3.1-rc1
view 6.x-2.2

selected the taxonomy image from taxonomy
select different image for different taxonomy term
select "by term" in the Marker handling in the view

but all the node still have the marker selected in the Marker / fallback marker to use in the view

gggdrpl’s picture

My problem is identical as reported by Osiride and my module versions are almost the same:

drupal 6.10
gmap 6.x-1.1-rc1
location 6.x-3.1-rc1
view 6.x-2.3

I can't get this to work, any help will be very much appreciated! Thanks!

gggdrpl’s picture

Sorry but I'm too impatient to be waiting for someone else's help! I've found the answer to why it may not be working for some people.

Please notice that in http://drupal.org/node/180370#comment-673728 it says clearly:

3) Edit and resave any nodes already tagged (It only associates a marker with a node during node save.)

So it wasn't working for me 'cause I was trying to set it up for a group of nodes that I've already posted. I resaved one of these nodes and instantly got my markers the way I wanted. So cool!!!

Mat77’s picture

Thanks for the tips, i was getting crazy with this...

My only problem is that i just importer 10k nodes.
I don't feel like going through each of them to save them again...

Any idea how to do that via code/module/trick?

sondes’s picture

You may have noticed this by now. If you open the editing screen for just one content item from each term and re-save it, it seems that all content items tagged with that term will have their marker updated. That is if you've already followed the steps mentioned above to enable taxonomy specific markers.

acrazyanimal’s picture

So frustrated, I was starting to pull my hair out over this one. I could give you a big open mouthed man to man kiss I'm so relieved... but I won't. Thanks for the tip ggg.

lyosef’s picture

Would you go into more detail here. I have been struggling for many days and still haven't got it working. How did you get it to work? The "default" colored marker overrides the custom colors no matter how many times I resave it. Your help will be most appreciated.

deadjohn’s picture

did you find a solution about the massive change of the icons? i have the same problem! i have more than 10k nodes that i have to resave... it is impossible to finish the project if resave one by one!

magicmarkker’s picture

Any idea how to choose which marker gets shown if a node has multiple taxonomy terms from different vocabs?

dunx’s picture

I think that's the problem I have; a node type with 3 different taxonomies. I've done everything described here and I still get the default marker for the node type. All 3 taxonomies are single select and there's no free-tagging. I'm just assuming it's because I have more than one taxonomy on my node. Any pointers anybody? Drupal 6.

dunx’s picture

There also seems to be an issue with GMAP 1.1 and Drupal 6.24 (a change to Taxonomy), which means the term's markers are not stored and so are not displayed either. See here for solution drupal.org/node/1443146

Re: Updating 1000s of nodes. You only seems to have to update one node with a particular term for them all to update. I don't quite understand why, but that's what seems to happen.