Skip to content

Change dash array expression to use "literal" form #175

@rwl

Description

@rwl

Does

const noDashArray = [0, 0] as const;
const dashArray = [15, 10] as const;

need to be changed to:

const noDashArray = ["literal", [0, 0]] as const;
const dashArray = ["literal", [15, 10]] as const;

I get this error when using the NetworkMap component:

Error: layers.gl-draw-lines.hot.paint.line-dasharray[2][0]: Expression name must be a string, but found number instead. If you wanted a literal array, use ["literal", [...]].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions