Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Display properties in glfw-linux-application #16676

Open
wecand0 opened this issue Aug 4, 2023 · 0 comments
Open

Display properties in glfw-linux-application #16676

wecand0 opened this issue Aug 4, 2023 · 0 comments

Comments

@wecand0
Copy link

wecand0 commented Aug 4, 2023

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")));

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

No branches or pull requests

1 participant