You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add building massing workflow
* Address Claude review feedback
- Keep ordinary polygon sketches flat by leaving height defaults to massing mode.
- Reset only the auto-managed extrusion style after the last massing feature is removed.
- Add regression coverage for massing detection and style transitions.
* fix: harden massing style synchronization
* fix: refine massing interaction on globe
* fix: preserve mixed sketch rendering
* Address Claude review feedback
- Respect a manual switch away from extrusion: the Style panel's 2D and
3D-elevation radios clear `extrusionEnabled` without clearing
`extrusionHeightExpression`, so the old "already customized" guard (which
required `extrusionEnabled`) was skipped and the next sync re-enabled
massing extrusion, silently reverting the user's choice. The auto-managed
expression paired with extrusion off is now treated as user-owned, with a
regression test for the draw -> switch to 2D -> edit sequence.
- Remove `sketchesIdleDisplayOverride`, which became dead code in e8bd03b
(the only `= true` assignment was dropped to fix the second-footprint
rubber-band regression). Its doc comment described behavior that can no
longer happen, and both of its checks were constant.
- Clear `preMassingExtrusionStyles` in `deactivate()` so entries for old
Sketches layer ids do not linger alongside the other module-state resets.
* Address Claude review feedback
- Gate the "user's own extrusion expression" guard on
`extrusionAdvancedStyleEnabled`, mirroring `extrusionHeightValue`, which
ignores `extrusionHeightExpression` unless advanced mode is on. Without it a
stray expression left behind by a since-disabled advanced mode blocked
massing auto-management for good, with no feedback. Tested both ways.
- Localize the two user-facing strings `GEO_EDITOR_OPTIONS` carries as copy.
The plugins package cannot call `t()`, so `setGeoEditorLabels` follows the
host-push pattern of `maplibre-graticule`/`maplibre-reverse-geocode`:
TopToolbar pushes `geoEditorPlugin.*` on mount and on every language change,
and `getGeoEditorOptions` reads the current values. The third-party control
reads its options once at construction, so a mid-session language switch
applies on the next activation; that is documented on the setter.
* fix: show massing extrusion while the draw tool stays armed
Drawing a massing footprint left the map looking unchanged: the Sketches
store layer is the only thing that renders the extrusion, and it is
suppressed for as long as the editor is in an interaction mode. The massing
tool stays armed after each completed footprint so the next one can be drawn,
so the user saw Geoman's flat polygon until they explicitly disabled the
tool.
`sketchesIdleDisplayOverride` used to cover this by treating the editor as
idle after a create, but that hid *all* of Geoman including the in-progress
rubber band, which is why e8bd03b dropped it.
Split the two instead: while the Sketches layer carries the auto-managed
massing extrusion and a draw tool (not an edit tool, whose handles hit-test
against them) is armed, hide only Geoman's `gm_main-*` committed-feature
layers and show the Sketches layer, leaving the transient aids visible.
Verified in the browser: a footprint extrudes as soon as it is completed with
the tool still armed, the second footprint still rubber-bands while being
drawn, and a height edit re-renders live.
* Address Claude review feedback
- Let a manual 2D switch outrank the pre-massing snapshot. Switching the
layer out of extrusion while massing features are present is already
honored by the enable path; the reset path then restored the pre-massing
style when the last footprint went away, silently turning extrusion back on
for a layer that had one before. The snapshot is now dropped and the user's
style left alone, with a test for that sequence.
* fix: avoid low-zoom massing artifacts
Render zoom-gated building massing as a normal flat fill below the extrusion cutoff so globe triangulation cannot create world-scale shards.
* style: auto-format (ruff + oxfmt) [pre-commit.ci]
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/en.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3677,6 +3677,10 @@
3677
3677
"confirmStyleReplace_one": "Switching to \"{{name}}\" replaces the whole map style and will remove the stacked basemap you added. Continue?",
3678
3678
"confirmStyleReplace_other": "Switching to \"{{name}}\" replaces the whole map style and will remove the {{count}} stacked basemaps you added. Continue?"
0 commit comments