|
|
ChatGPT 4/3/2026 |
|
Hi Geoff, It sounds like you're on the right track with trying to set the marker icons dynamically based on the Here’s a step-by-step approach to ensure that the dynamic icons work correctly on your dashboard map:
By following these steps, you should be able to ensure that the dashboard map displays the correct icons for each country based on the risk rating. If you're still having issues, you might want to reach out to the PHPRunner support community for more tailored assistance. Good luck with your project! Best, |
|
|
G
|
gtothill author 4/4/2026 |
|
Thanks ChatGPT! Unfortunately none of your suggestions worked on this build. Does anyone from the community know if this should be possible? Thanks! Geoff. |
|
|
|
Sergey Kornilov admin 4/4/2026 |
|
The following part doesn't look right: Where did you find this syntax? When you insert a map there are comments that explain how to customize a marker. |
|
|
G
|
gtothill author 4/5/2026 |
|
Thanks Sergey, I also tried $data["map_marker_icon_path"]; I just wondered - the map I have embedded on the dashboard is from the same table as the data grid displayed on that dashboard. On the source list page I have a map with the following settings for the icon // You can specify a custom marker icon. This works perfectly on the list page - so in the map on the dashboard I wanted to do the same (because its ilogical in the application for all the markers to be red). So I need to somehow set the $mapSettings['markerField'] variable for the map on the dashboard. It seems the php extression for setting the marker icon expects $icon = So I simply tried: $icon = $data['map_marker_icon_path']; but that doesnt work so Im assuming that the grid value for map_marker_icon_path isnt exposed, or I need to refer to it differently if it is being derived from the data grid on the dashboard page. I notice that the description field (in my case 'DisplayOnMap') is correctly displayed on the google map on the dashboard. If I could find out how that is referenced I could do the same with map_marker_icon_path. As a test I set the description field to map_marker_icon_path and it is shown ciorrectly for each marker as a description, but I cant access it to use to set the icon path for each marker for some reason. Can you suggerst where to look? Thanks a million, Geoff. |
|
|
|
Sergey Kornilov admin 4/6/2026 |
|
Just wanted to say that the issue was understood and we are looking into this. |
|