Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui-warped-map: downgrade maplibre-gl to v4
maplibre-gl v5 causes multiple issues: - The story is broken (JavaScript error trying to set pixelsToGLUnits). Upstream bug report: visgl/react-map-gl#2460 - A new TypeScript error pops up, went unnoticed because CI doesn't fail on these: (!) [plugin typescript] src/components/DataLoader.tsx (61:43): @rollup/plugin-typescript TS2345: Argument of type 'GeoJSONFeature' is not assignable to parameter of type 'MapGeoJSONFeature'. Type 'GeoJSONFeature' is missing the following properties from type '{ layer: (Omit<FillLayerSpecification, "source"> | Omit<LineLayerSpecification, "source"> | Omit<SymbolLayerSpecification, "source"> | ... 5 more ... | Omit<...>) & { ...; }; source: string; sourceLayer?: string | undefined; state: { ...; }; }': layer, source, state /home/simon/src/osrd-ui/ui-warped-map/src/components/DataLoader.tsx:61:43 61 .map((f) => simplifyFeature(f, sourceLayer)); This commit effectively reverts: #797 Signed-off-by: Simon Ser <[email protected]>
- Loading branch information