Skip to content

plugin-map: no fitBounds to data — markers land on an adjacent world copy, initial viewport shows an empty map #4941

Description

@yinlianghui

Observed

Map list view (MapLibre-based plugin-map), driven by objectstackexamples/app-showcase at framework SHA 189a732254e6c46af75cfa38462693e67408d2d3 (showcase task object, seeded US-city coordinates):

  • The initial camera does not fit the data: markers are rendered on an adjacent world copy (longitude-wrapped), so the first paint shows a map with no visible markers; reaching them takes manual zoom-out + pan.
  • Context: the showcase map view declares no custom style, so the plugin falls back to the public MapLibre demo style (demotiles.maplibre.org), whose productionization notice banner shares the screen. Not a defect by itself, but it amplifies the empty-first-paint impression.

Expected

On load, the camera fits the bounds of the queried records' coordinates (normalized longitudes / fitBounds over the marker set), so a view with data never opens on an empty ocean.

Repro

# in objectstack repo
git checkout 189a7322
cd examples/app-showcase && pnpm dev
# open the task object's map view — first paint has no markers in viewport;
# zoom out: markers sit on a neighbouring world copy

Recorded as an unassigned finding (not claiming). Discovered during a read-only promo-video production run (video-studio work order steedos-labs/video-studio#1); relayed by the coordinating PM session as the producing session has no GitHub scope on this repository.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions