When you assign a custom object to RealTimeMap.StreamPoint.value all properties must start with lower case. Please add this to the documentation or check why capitalized properties do not work, I was going crazy because it did not work and couldn't find out why!
RealTimeMap.StreamPoint point = new()
{
guid = Guid.NewGuid(),
type = "Player",
latitude = coords.Lat,
longitude = coords.Lng,
timestamp = GetTimestamp(status.Timestamp),
value = new PlayerPointAttributes() { Name = player.Name! },
};
...
public class PlayerPointAttributes
{
public required string Name { get; set; }
}
...
// This tooltip does not show the name. It is fixed by changing the property to lowercase
RealTimeMap.Geometric.Points.AppearanceOnType(x => x.type == "Player").pattern = new RealTimeMap.PointTooltip()
{
content = "<b>${type}</b><br><b>Name: ${value.Name}</b>",
permanent = false,
};
When you assign a custom object to RealTimeMap.StreamPoint.value all properties must start with lower case. Please add this to the documentation or check why capitalized properties do not work, I was going crazy because it did not work and couldn't find out why!
Example: