Skip to content

🐞 [BUG] Maps exported to pdf are not correctly centred #456

@XU-Nuo

Description

@XU-Nuo

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Maps exported to pdf render the exactly same view/range as the reading view:
image

Current behaviour

The center of the map is shifted to some direction, and is not marker is out of the range of the map, export using a bigger page size make the marker visiable again:
A4-portrait:
image
A5-landscape:
image

A3-landscape:
image

Reproduction

the test results are generated from a brand new vault with only leaflet installed, the file content is:

---
city:
  - "[[test]]"
location:
  - 31.04723413797611
  - 121.40879449024958

price: $2600
---

```leaflet
id: test
minZoom: 10
maxZoom: 18
coordinates: [[test]]
markerFile: [[test]]
` ``

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.6.7

Plugin Version

6.0.5

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions