I have create a new Openlayers data view including content fields "longitude" & "latitude" and node fields "title" and "body". I also add the taxonomy image field to use it in the variable style following this : http://drupal.org/node/754480.
But it didn't works when I put the ${tid}(taxonomy image field) in the externalGraphic field of the OpenLayers style I don't have no more icon for the points in the final preset. I don't know if it is because externalGraphic needs a URL and the taxonomy image field is an image but in that case I don't know how to get the URL in the views.

I don't know if it's the best way to do it but it's the only I found, if you know other or better solution it would be great to.

Ps : sorry for my poor English

Comments

zzolo’s picture

Hi @sebgranel. The externalGraphic needs a full URL. Also, the replacement styling needs to be a single variable and be the name of the field that Views is producing, like ${tid_image_url}.

sebgranel’s picture

Thank you for the quick answer. Can you please give me some more information?
In views I don't find how to output the taxonomy image field differently than the image so I don't have a good field produced by views. Do you know how to output the image URL ?

zzolo’s picture

Hi @sebgranel. That is the out of the scope of this module. I am not sure what module you are using for images for taxonomy, but it is up to that module to expose the URL in Views. I know imagefield does this.

sebgranel’s picture

Hi @zzolo. The module I use is Taxonomy image and I think it's impossible to show the URL in views after some search.
So thanks for your help, I will search for another way to do that.

zzolo’s picture

Status: Active » Fixed

You could put in a issue for the Taxonomy Image module to ask for this feature. Good luck.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.