Closed farfromrefug closed 2 years ago
Have you tried using [osm_id]
? It should work.
@mtehver osm_id is not available. The config i attached says that osm_id
is used as the feature id
.
The issue here is that the feature id
does not seem to be available through css
. Am i wrong?
Same question for VectorTileSearchService
and filterExpression
@farfromrefug Ok, makes sense. I will add support for special 'id' field that will be equal to the internal feature id.
@farfromrefug I have added the feature now (you need to get the latest commits from 'develop' branch for both mobile-carto-libs and mobile-sdk). You can access the internal id using [mapnik::feature_id]
@mtehver awesome thanks a lot for all this !
I am creating an openmaptiles layer with that query
So the feature
id
is theosm_id
. Now i need to read thatid
through css style to test for selection. However this does not seem possible.[id]
does not return the id. Could we add that?