Does anyone have any examples of using dates as differentiators for map icons?

Basically, I would like to display historical events in one colour, future events in another. If, by some strange quirk, someone views the site on the day of an event, it could be in a third colour.

Comments

RdeBoer’s picture

Interesting problem....

IPGV&M matches on the exact value, it cannot do "greater than" or "less than".
So the only colour that would work the way things are, is the one for the day of the event.

Maybe IPGV&M needs to accept PHP snippets in its differentiator... Then you could create a small PHP function that returns -1, 0, or +1 and colour-code markers based on that....

Food for thought...

jaclayton’s picture

Hmm... If I could get a calculated field to display that -1, 0 or +1 depending on the current date, then run the differentiator against that...

Thanks, you may have pointed me in the right direction.