Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Initial Zoom and Render Issues #410

Open
3 of 7 tasks
tgrosinger opened this issue Jul 23, 2023 · 4 comments
Open
3 of 7 tasks

[Bug]: Initial Zoom and Render Issues #410

tgrosinger opened this issue Jul 23, 2023 · 4 comments
Assignees
Labels
Type: Bug A problem with existing functionality.

Comments

@tgrosinger
Copy link
Contributor

tgrosinger commented Jul 23, 2023

Check for existing bug reports before submitting.

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

Expected Behavior

Loading the map should render all tiles, and respect the zoomFeature configuration.

Current behaviour

When zoomFeature is true, the map loads zoomed out extremely far. Most map tiles are not rendered.

With zoomFeature removed, it seems to have a reasonable default zoom, but still fails to load most map tiles.

Clicking Reset Zoom brings it to the expected map location.

Reproduction

Please see the video below for a detailed reproduction.

ZoomToFeatures

The settings used in the video are here:

id: 2022-06-23 Driving
gpx:
  - [[2022-06-23-driving-cascades-day-7-part-1.gpx]]
gpxColor: #fff
zoomFeatures: true
maxZoom: 19
gpxMarkers:
  start: default
  waypoint: default

Which Operating Systems are you using?

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

Obsidian Version Check

1.3.7

Plugin Version

5.7.1

Confirmation

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

Possible solution

I see the correct Zoom calls being set in on("first-layer-ready"), so I'm wondering if that's just happening too early? I tried calling resetZoom in that function, but it still didn't resolve the issue.

@tgrosinger tgrosinger added the bug label Jul 23, 2023
@sigrunixia sigrunixia added Type: Bug A problem with existing functionality. and removed bug labels Aug 11, 2023
@saadsaifse
Copy link

Facing a similar issue with the following configuration. The map doesn't load centered, and upon clicking the Reset Zoom button, it zooms to the features. Expected is to zoom to features on load.

image
id: 9861460158
zoomFeatures: true
maxZoom: 18
zoomDelta: 0.5
geojsonFolder: .

@nigels-com
Copy link

Same problem here.

@SpocWeb
Copy link
Contributor

SpocWeb commented Jan 17, 2024

Same Problem also, for reproduction use my public Repo:
https://github.com/SpocWiki/_public there are maps for all countries below
https://github.com/SpocWiki/_public/tree/main/geo/Continent

@WonkyGrub
Copy link

Same problem here. I have found that when zoomFeature is true, it starts with the zoom level of the minZoom parameter.

and as others have said, manually clicking on Reset Zoom causes the zoom and location to be correct and align with what the expected initial zoom and position would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug A problem with existing functionality.
Projects
None yet
Development

No branches or pull requests

7 participants