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

Implemented all properties on TextSymbol, unit tests and Label sample #234

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

TimPurdum
Copy link
Collaborator

Closes #231

  • Implements missing properties on TextSymbol, including the requested XOffset and YOffset
  • Wrote new SymbolsTests to verify that symbol is generated and all properties are set
  • Added Labels sample that shows off some TextSymbol features

/// </remarks>
[Parameter]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? XOffset { get; set; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In looking at the TextSymbol docs, I noticed that a number of these new properties are autocast, are not supported in 3d Sceneviews or are only applicable when TextSymbol is not used for labeling, is this why they are not added in the main TextSymbol constructor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they aren't added to the constructor because I forgot to update the constructor 🙂

Copy link
Collaborator

@seahro seahro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. One comment on TextSymbol class

@TimPurdum TimPurdum merged commit 3411b82 into develop Oct 6, 2023
@TimPurdum TimPurdum deleted the feature/231_text_symbol_offsets branch October 6, 2023 01:38
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

Successfully merging this pull request may close these issues.

TextSymbol Offset
2 participants