Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate labels on polygons #801

Open
westnordost opened this issue Sep 15, 2022 · 0 comments
Open

Duplicate labels on polygons #801

westnordost opened this issue Sep 15, 2022 · 0 comments

Comments

@westnordost
Copy link

TANGRAM VERSION:

0.21.1

ENVIRONMENT:

Win10, Firefox

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

Copy&Paste this style into https://play.tangram.city/?#20.00000/53.59579/9.94521

sources:
    jawg:
        type: MVT
        url: https://tile.jawg.io/streets-v2/{z}/{x}/{y}.pbf
        max_zoom: 16
        url_params:
            access-token: Rqx0Qqc3TAHCG5MVXmxSAkaSgwm5nVSq4fV8IeTxiq9cieOQFfOt5BsYjK8Cwkqr

layers:
    buildings:
        data: { source: jawg, layer: building }
        draw:
            polygons:
                order: 100
                color: "#999"
    anything:
        data: { source: jawg, layer: building }
        draw:
            text:
                text_source: function() { return "✕" }
                priority: 1
                collide: false
                font:
                    fill: "#f00"
                    size: 26px
                    weight: bold

RESULT:

You'll see this:

image

There is an extra duplicate label not at the centroid but at the first node of the polygon.

This does not happen for all polygons with labels, only for some.

Tangram-ES has an identical issue.

EXPECTED RESULT:

For polygons, there is only one label.

ADDITIONAL INFORMATION:

This is neither a problem with the OSM data, see: https://www.openstreetmap.org/way/612211229#map=19/53.59555/9.94558

Nor an issue with jawg.io data, see
image
https://www.jawg.io/docs/apidocs/maps/streets-v2/#19.89/53.5957094/9.9453778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant