Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG]: Defaultzoom andcenter forscattermap traces does not show all points #7674

Open
Labels
P2considered for next cyclebugsomething brokengood first issuesuitable for newcomers
@emilykl

Description

@emilykl

Description

When creating ascattermap trace, users have the option to set thelayout.map.zoom andlayout.map.center options to control which section of the map is shown.

Ifzoom andcenter are not provided, the trace should default to showing all datapoints; however this is not what happens -- sometimes datapoints are outside the map area.

@ndrezn reported asimilar issue which seems to be caused by plotly.py, but this one is reproducible in plotly.js.

Codepen

This Codepen demonstrates the issue:
https://codepen.io/emilykl-code/pen/bNpyXqQ
Image

Trondheim is one of the cities plotted, but it's not visible in the initial map view; you need to pan the map northward to see it.

Expected behavior

At a minimum, the initial map zoom and center should show all data points.

It's also probably reasonable to choose a default zoom such that the data points mostly fill the plot area.

Notes

Questions to answer:

  • Where is the (bad) current default coming from: Is it something we are choosing in plotly.js, or is it something being set by MapLibre?
  • Under what circumstances are points cut off? Does it only happen for points in the northern latitudes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokengood first issuesuitable for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp