Commit 573b30c
docs(maplibre): fix Solid slot-fill API in the guide examples
The per-target slot-fill prop names differ by emitter, and the guide's Solid
marker example was wrong on two counts: Solid uses the SUFFIXED render-prop
`markerSlot`/`popupSlot`/`controlSlot` (not the bare `marker`), and its scope is
passed as an ACCESSOR `() => ctx` (the Solid foreign-slot reactivity pattern),
so it's `markerSlot={(ctx) => …ctx().marker…}`, not `marker={({ marker }) => …}`.
Verified every per-target fill API against the emitted leaves: React
`renderMarker`/`renderPopup`/`renderControl` (plain ctx), Lit `.marker`/`.popup`/
`.control` properties (plain ctx), Vue `#marker`, Svelte snippet, Angular
`<ng-template #marker>`. Expanded the per-target summary line to list all six
accurately. No props-table change (enforcement PASS); docs 138 anchors/0 broken.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2c57e0b commit 573b30c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments