ITADN

Enable data driven stylng for `line-{cap,round-limit,miter-limit}`

#4194OpenCommanderStorm 创建于 2026-03-29
C
CommanderStormcommented
**Is your feature request related to a problem? Please describe.** In MapLibre Native, `line-cap`, `line-round-limit`, and `line-miter-limit` currently do not support data-driven styling. This limits styling flexibility compared to MapLibre GL JS, where these properties can already be data-driven. As a result, styles that rely on feature-dependent line joins or caps cannot be ported consistently between platforms. **Describe the solution you'd like** Add support for data-driven styling expressions for `line-cap`, `line-round-limit`, and `line-miter-limit` in MapLibre Native, matching the capabilities already implemented in MapLibre GL JS. **Describe alternatives you've considered** Workarounds include splitting data into multiple layers based on properties, but this increases style complexity, impacts performance, and is not scalable for dynamic datasets. **Additional context** This feature has already been implemented in MapLibre GL JS, so parity would improve cross-platform consistency and reduce friction when sharing styles between web and native. I don't actually have a Cartographic case for this. It was just very simple to implement in GL-JS..
2 条评论