Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ksdmg opened this issue Dec 29, 2024 · 0 comments

Comments

@Ksdmg
Copy link

Ksdmg commented Dec 29, 2024

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,
            };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant