I am trying to show/hide some map markers on an <apex:map>
by assigning a boolean value coming from an Apex attribute to the rendered
tag. However, I am receiving a compile error on save:
Literal value is required for attribute rendered in in OfficeMap at line 26 column 6
The code:
<apex:mapMarker title="{!office.Name}" position="{!office.geo}" rendered="{!office.isShown}"/>
However, if I decide to put the value as a string, I can compile my Visualforce successfully:
<apex:mapMarker title="{!office.Name}" position="{!office.geo}" rendered="true"/>
Any idea if this is a known bug, or if there's an alternative?
mapMarker
in general.