LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtApr 1, 2025, 10:02 PM
updatedAtNov 6, 2026, 11:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/6611
authortobiu
commentsCount6
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 20489 Xhr appends a second ? to a URL that already has a query, [x] 6610 main.addon.OpenStreetMaps
blocking[]
closedAtNov 6, 2026, 11:50 PM

Earthquakes Tutorial: Add a new maps provider

Closed v13.4.0/archive-v13-4-0-chunk-2 documentationenhancementai
tobiu
tobiu commented on Apr 1, 2025, 10:02 PM

related to: https://github.com/neomjs/neo/issues/6610

Intake contract — Sophie, 2026-11-06

Retained intent: a reader reaches a keyless Iceland map using the tutorial's live earthquake feed and the same Store as its table. #6610 is delivered by #20474; its blocked-by edge remains as provenance. The original description above is preserved.

Target surface Source of authority Behavior Edge / fallback Docs Evidence
Map addon setup src/Main.mjs#importAddonModule, src/main/addon/OpenStreetMaps.mjs#loadFiles Load built-in OpenStreetMaps; remove custom-source download, WS/GoogleMaps, API-key and billing steps Requires network access to the live feed, OpenLayers CDN and OSM tiles; do not claim offline operation Existing Earthquakes map lab Real installed-package browser load, successful library/tile requests and attribution
Marker model Live endpoint returns data[] with string lat, lng, location; src/data/RecordFactory.mjs#parseRecordValue supplies calculate(data, field); Store#createRecord generates missing keys Declare id to retain the generated key, lat and lng as Float fields; derive position: {lat, lng} from data; map title from location Retain actual live feed; never silently substitute fixtures or claim their data is current Existing field recipe Live finite coordinates and marker count matching Store
Shared Store and click src/component/wrapper/OpenStreetMaps.mjs#onMarkerStoreLoad / #parseMarkerClick, src/data/Store.mjs#onCollectionMutate Bind map and table to stores.earthquakes; marker click yields the same Store record Empty feed means no markers; reload must not duplicate them; no second hand-mapped Store Map and event labs; essential adjacent path/API corrections Identity checks, reload, actual pointer click and table event
Reader presentation Existing learn/tutorials/Earthquakes.md, learn/tree.json tutorials entry Explain worker wrapper versus main-thread renderer through the concrete map lab; retire obsolete warning and Google screenshots Preserve unrelated labs and the existing narrative; no front-door/nav additions Same registered page Portal rendering and literal snippets in a consuming workspace

Acceptance

  1. Follow the revised map/model/event snippets in a workspace with the actual packaged engine containing #20474; no engine symlink, copied addon, key or billing setup.
  2. Real OpenLayers map and OpenStreetMap attribution render; live feed coordinates are finite and markers match the shared Store.
  3. The StateProvider, table and map reference one Store; a real marker click identifies that Store's record. A reload preserves the marker count without duplication. The table's rowClick listener receives its clicked record.
  4. The existing portal page renders the revised explanation and any diagram without errors or unreadable scaling. Scope is the keyless map lab and necessary adjacent repairs, not synchronized selection or a new map abstraction.

Native acceptance blocker found during implementation

The packed consumer with the normal generated Viewport reaches the real OpenLayers library and OSM tiles, but Store.url invokes Xhr with pagination parameters. At dev d7e91ec544, Xhr#request appends a second ? to a URL already containing a query. The resulting ...?fn=earthquakes?page=1&pageSize=0 returns HTTP 200 text earthquakes?page=1 is not a function. rather than JSON. The original endpoint returns valid JSON. Ada's #20490 is merged and #20489 is closed; the blocked-by edge remains as provenance. Tutorial PR #20491 is now ready after merged-engine acceptance.

A separate diagnostic URL-correction control loads 76 live records and exposed the missing public id in the old model (76 records collapsed to one marker). The tutorial now retains the Store-generated key. Diagnostic controls are not acceptance. A direct-MainView experiment bypassed the generated Viewport and produced zero sizing; that was a test-setup variant, not a tutorial defect, and no sizing workaround is retained.

Final acceptance passed with a fresh actual npm package from merged dev 2f6e04b2ad4832610c1350ad1f308d6218046e6c, with no interception: 79 live rows, 79 unique markers, native map/table pointer clicks returning the same Store record, and a second real load retaining 79 unique markers. Real OpenLayers and OSM tiles loaded; no browser/network errors. #20491 carries the merged-engine and portal receipts; its independent review and human merge remain.

tobiu added the enhancement label on Apr 1, 2025, 10:02 PM
tobiu assigned to @tobiu on Apr 1, 2025, 10:02 PM
tobiu cross-referenced by #6607 on Apr 1, 2025, 10:03 PM
tobiu referenced in commit d6358f5 - "docs(tutorial): use the keyless shared-store map (#6611) (#20491)" on Nov 6, 2026, 11:50 PM
tobiu closed this issue on Nov 6, 2026, 11:50 PM