Skip to content

Cannot use text-field layers on third party maps #4808

@daumann

Description

@daumann

Apparently drawing text labels is only possible if using a Mapbox basemap?

When using another map provider (such as stamen or osm), upon adding a layer which uses text-field, it throws:

Error: layers.symbols.layout.text-field: use of "text-field" requires a style "glyphs" property

Here is a working example with a mapbox vector tile source for the basemap:
http://jsfiddle.net/brianssheldon/wm18a33d/27/
And here is the same code, just with another basemap provider (here: osm, but same behavior with stamen):
http://jsfiddle.net/wm18a33d/38/

Is there a workaround? This would completely derail using mapbox-gl in my project if true.

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