Repository navigation
feat(wasm): reference layers on the demo map, display only - #260
Merged
antonio-leblanc merged 2 commits intoNov 3, 2026
Merged
Conversation
The DFCI grid, water points and DFCI tracks, drawn from the IGN Géoplateforme in France, so a place on the map can be named the way a firefighter would. Nothing reaches the worker or the engine. Each layer is off by default and fetched only when switched on.
antonio-leblanc
left a comment
Collaborator
There was a problem hiding this comment.
ok only wasm and demo!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds three optional map layers to the WASM demo, for France: the DFCI grid with its square names, water points, and DFCI tracks. A firefighter who tried the demo couldn't place it on the ground without them.
This is display only: no change to the engine or the physics.
worker.mjs,forefire_wasm.cppandsrc/are untouched. The layers are drawn on the canvas and never reach the simulation, and the page says so.overlays.mjsfetches from the IGN Géoplateforme (WFS, CORS open, no key) and draws. Off by default: no request to IGN until a layer is switched on.Tested in Chrome on the Corsica default: a run with the layers on or off gives the same 169 frames and 81,590 front coordinates; 2D, 3D, pan and zoom follow the ground. The page warns that the data is indicative, not for operational use.
If this is out of scope for the demo, I can keep it on a fork instead.
Carroyage et points d'eau
Red squares: buildings (priority in protection)
Drafted with Claude Opus 5.5.