Skip to content

RealTimeMap.StreamPoint.value must contain a object with lowercase properties #63

@Ksdmg

Description

@Ksdmg

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:


                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,
            };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions