Skip to content

[FEATURE]: Allow Element property of MarkerOptions to be serialized #164

@desmondinho

Description

@desmondinho

Is your feature request related to a problem?

I want to set custom markers using ElementReference object.

<div @ref="@Options.Element">
    @ChildContent
</div>

And then just replaceChildren in JS.

Describe the solution you'd like

// MarkerOptions.cs

[JsonPropertyName( "element" )] // <---
[JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )] // <---
public ElementReference? Element { get; set; }

Describe alternatives you've considered

No response

MapLibre JS Reference

No response

Example Usage

Additional context

No response

Contribution

  • I'm interested in implementing this feature with guidance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions