Table of Contents

Struct ResourceTransformRule

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Query parameters to add to the URLs of requests that match a pattern.

public readonly record struct ResourceTransformRule : IEquatable<ResourceTransformRule>
Implements
Inherited Members

Remarks

The library adds the parameters, in order, at the end of the URL's query and before any fragment. It keeps the parameters that the URL already has, even one with the same name.

See mln_resource_transform_rule in the C API reference.

Constructors

ResourceTransformRule()

public ResourceTransformRule()

ResourceTransformRule(ResourceKindFlag, UrlMatchFlag, string, ImmutableArray<UrlQueryParameter>)

public ResourceTransformRule(ResourceKindFlag Kinds, UrlMatchFlag Flags, string Url, ImmutableArray<UrlQueryParameter> Parameters)

Parameters

Kinds ResourceKindFlag
Flags UrlMatchFlag
Url string
Parameters ImmutableArray<UrlQueryParameter>

Properties

Flags

public UrlMatchFlag Flags { get; init; }

Property Value

UrlMatchFlag

Kinds

The kinds of resource that the rule covers. Zero covers every kind.

public ResourceKindFlag Kinds { get; init; }

Property Value

ResourceKindFlag

Parameters

public ImmutableArray<UrlQueryParameter> Parameters { get; init; }

Property Value

ImmutableArray<UrlQueryParameter>

Url

public string Url { get; init; }

Property Value

string