Skip to content

duplicate lines cause different result in tangram-es and tangram play #1584

@matkoniecz

Description

@matkoniecz

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

  • List the steps you used
  • To produce the result here
  • Don't leave any out

use style with

                     stroke: { color: black, width: 1 }
                     stroke: { color: global.text_stroke, width: [[1,1px], [12,2px],[16,4px]] }

RESULT:

Describe the result here.

first line is used

As result, following map style change matkoniecz/Zazolc@d1bc84f causes change to rendered map with tangram-es interpreter

tangram play in both cases is using second stroke definition.

EXPECTED RESULT:

Describe what you expected to see here.

either

  • second line is used (as redefinition)
  • error is raised
  • both tagram play and tangram-es are using first line and ignore redefinition

ENVIRONMENT:

  • What operating system and device did you produce this issue on?

  • If you used a released version, what is the version number?

  • Redmi 4 Xiaomi

  • Android 6.0.1 MMB29M

  • com.mapzen.tangram:tangram:0.7.1

OTHER:

Any additional notes, comments, tips, tricks, gifs, suggestions, poetry, recipes, jokes

If you are able to record the log output from tangram-es, please attach it as a text file or share it using a site like https://hastebin.com/

Reported here as ignoring first line and using second as redefinition seems saner interpretation of repeated rules.

Though giving error message would be preferable in both interpreters.

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