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.

Display properties in glfw-linux-application #16676

Open
@wecand0

Description

@wecand0

Hello!
My little team is writing an application in linux + glfw + maplibre gl, the performance of using pure c++ api is great! We stuck in one thing: how to display names of geojsons? For example we use this https://docs.mapbox.com/mapbox-gl-js/example/variable-label-placement/, as we undrestood we have to use text-field': ['get', 'description'] in layer so in c++ we write such thing ->

auto symbolLayer = std::make_unique<SymbolLayer>("poi-labels", "places");
symbolLayer->setTextField(PropertyExpression<expression::Formatted>(createExpression(R"(["get", "description"])")));

what is wrong..? geojson is correct!

Also tried in such way symbolLayer->setTextField(PropertyExpression<expression::Formatted>(get("description")));

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