Skip to content

Commit ea4f97f

Browse files
ajrothwellclaude
andcommitted
disable MapLibre GeoJSON source simplification
MapLibre's default geojson-vt tolerance (0.375) applies Douglas-Peucker simplification when converting GeoJSON to internal vector tiles. This caused visible corner-cutting on street line geometries at higher zoom levels, separate from the server-side maxAllowableOffset fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6e8653b commit ea4f97f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phila/layerboard",
3-
"version": "3.0.0-beta.24",
3+
"version": "3.0.0-beta.25",
44
"type": "module",
55
"description": "Vue 3 + MapLibre mapping framework for City of Philadelphia applications",
66
"main": "./dist/index.js",

src/components/MapPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ function getDynamicExportLayerSource(layer: TiledLayerConfig) {
587587
function getSource(layer: any) {
588588
const data = layerData.value[layer.id];
589589
// Data should always exist here because we filter with hasSourceReady()
590-
return { type: "geojson" as const, data: data! };
590+
return { type: "geojson" as const, data: data!, tolerance: 0 };
591591
}
592592
593593
function getLayerOpacity(layerId: string): number {

0 commit comments

Comments
 (0)