I'm trying to rewrite the output of the views field used for dynamic styles but whatever I do, the overwrite is ignored and the original field value is used.
This is the case for both Style field in Openlayers data overlay settings and dynamic variable used in styles path ${field_my_field}

Not sure if this is the right way of doing it so this may as well be a support request.

Is there any way to override the value of the field used to generate path to cusom marker?

Comments

azuledu’s picture

To create a dynamic style with a custom marker based on a field you just to create a OL style with the 'externalGraphic' property equal to something like sites/all/themes/yourtheme/images/${field_my_field}.png
I don't know if this is your question.

roman_pro’s picture

The suggested method only works when you use the actual field value in your style. The problem is that I need to calculate this value using php.

azuledu’s picture

Maybe you can use a computed field before using the field.

Pol’s picture

Hi,

Is it also doing the problem with beta9 ?

I did a lot of change in the way fields are displayed and I think it's much better.

Could you test with beta9 and if it's not working, tell us the steps to reproduce the problem ?

Pol’s picture

Hi,

I've finally made quite a lot of changes in the styling of the feature this morning.
Could you check the 7.x-2.x version and let me know ?

Pol’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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