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

MapBox GL possible bug: Not all labels rendered when using a symbol-placement of line #1563

Closed
Tracked by #229
carmenau opened this issue Sep 25, 2015 · 0 comments
Closed
Tracked by #229
Assignees

Comments

@carmenau
Copy link

Using geojson as a source for mapbox gl. We are rendering road vectors and would like to render the labels for these roads above on a separate layer.
For Rendering labels I'm using the following styling:

    layers = layers.push(Immutable.fromJS({
        'id': 'markers1',
        'source': sourceId,
        "layout": {
            "text-field": "{title}",
            'text-allow-overlap' : true,
            'visibility' : 'visible',
            'symbol-placement': 'line',
            'text-max-size': 10
          },
        'paint': {
            "text-color": "red",
            'text-size': {"stops": [[14, 6], [15, 8], [17, 10]]}
        },
        'type' : 'symbol'
    }));

The issue is that the only a 5-7 out of 40+ of the labels are rendering, however when the symbol-placement: 'line' field is removed, then all the labels render. I wonder if this is some collision issue. I've played with the label text length as well as the font size to minimal change.

Any insight to what is happening here would be helpful.

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

3 participants