Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

line-pattern, handling empty / null values #14331

Closed

Description

@tobrun

This is an issue downstream in the annotation plugin for Android. In this plugin we use DDS in combination with a high level annotations API to make it easy for users to draw symbols, fills, lines and circles on a map.

ezgif com-video-to-gif (54)

I'm currently hitting an issue that I can't show both normal lines as lines with a pattern at the same time. This stems from how core handles empty/null values for the line-pattern property. For normal lines, we don't have a line-pattern value and for those cases we will pass a null value. If another line has a line-pattern, this will try to load the null value as line-pattern for the other lines.

Expected behavior

Core ignores null/empty value of line-pattern and will try to render using the other properties.

Actual behavior

Core tries to load the line pattern but since it's invalid it will not render anything.

Activity

  1. added
    Core
    on Apr 4, 2019
  2. tobrun commented on Apr 4, 2019

    @tobrun
    MemberAuthor

    Created a minimal reproducible example in 2d91a8f#diff-b1dcccccc9ff5957b8e35726e4bb142fR97

    I would expect two lines to be rendered, be only the pattern one is shown:

    image

    The issue seems to be that while the default value of a line pattern is { "" } and ignores it, when using a get() expression that evaluates to "", the value is treated as valid.

  3. tobrun commented on Apr 9, 2019

    @tobrun
    MemberAuthor

    Validated that passing in the default value of "" to the property results in showing no lines at all.

  4. added
    archived
    on Oct 6, 2019
  5. stale commented on Oct 6, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  6. reopened this on Oct 7, 2019
  7. removed
    archived
    on Oct 7, 2019
  8. added
    archived
    on Apr 4, 2020
  9. stale commented on Apr 4, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corearchived

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions