Trying to show info based on if the query returns a value in a google map with dynamic markers. Does not seems to work though. Please check my syntax and let me know if it is incorrect:
marker-info="'<span dmx-show="' + Ename + '">' + Ename + '<br/></span>' + full + '<span dmx-show="' + rating + '"><br>' + rating + '</span> + <span dmx-hide="' + rating + '">Not rated yet</span>'"
Also tried this:
marker-info="<span dmx-show="{{Ename}}">{{Ename}}<br/></span>{{full}}<span dmx-show="rating"><br>{{rating}}</span><span dmx-hide="rating">Not rated yet</span>"
I do not have a solution for the above but I was able to overcome the limitations by doing all my conditions in the back-end and then just using set value to have the values for the field ready for the front end.
1 Like