-
Thanks @msbarry for the help on Slack regarding the creation of a point layer for OSM route relations. In summary, the approach suggested on Slack is to save all the required information on the relation during the The missing piece in this puzzle is how to use the relation's OSM id as the basis for the feature id of that point. Any
I was unable to fine a way to access the config from
How can I implement this using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Can you pass config into the constructor for the layer and store it in a field to use in processFeature or other profile methods? |
Beta Was this translation helpful? Give feedback.
Looks like the API doesn't expose this too easily, would this let you do what you need? https://github.com/onthegomap/planetiler/pull/960/files - seems like you could call
feature.setId(relation.vectorTileFeatureId(multiplier))
?