Hi all,
Im building on PHPR 11.2 Enterprise Build 44123.
I have a dashboard with a table showing rows of data from a country database. Each country has a risk rating that is represented by a field - alowed values are RED, AMBER and GREEN.
I use a calculated field in the sql query to generate another field called "map_marker_icon_path" which points at the icon I would like associated with each of the rows and therefore each of the map markers.
I also use a concatinated field that generated a field I can use as a description (label) for each of the map markers.
This all works perfectly when I edit a map that is on the normal list page. I can set the icon to the field "map_marker_icon_path" using $mapSettings['markerField'] = 'map_marker_icon_path';
However Im trying to do a similar thing with a map showing the same data on a dashboard page. The options here are much reduced although there is the option to set the map marker in php.
So I tried this: $icon = $value["map_marker_icon_path"];
But I just get the default icons instead of the various icons for each of the rows of the sorce table - also in the dashboard.
Can someone tell me how to do this so that the map in the dashboard uses the icons defined in that tables map_marker_icon_path field? Ie The right icon is displayed for each row according to the risk rating?
Or some other technique if that is more appropriate!
Thanks in advance,
Geoff.