Skip to content

Feat/wms tile overlay#885

Open
munw37 wants to merge 6 commits intogooglemaps:feat/wms-tile-overlayfrom
munw37:feat/wms-tile-overlay
Open

Feat/wms tile overlay#885
munw37 wants to merge 6 commits intogooglemaps:feat/wms-tile-overlayfrom
munw37:feat/wms-tile-overlay

Conversation

@munw37
Copy link
Copy Markdown

@munw37 munw37 commented Apr 2, 2026

  • Did some refactoring of getBoundingBox() to reference a val instead of several declarations of the same double. Also defined EARTH_CIRCUMFERENCE using this val so that the entire bounding-box math has one source of truth for dimensions. Also bit-shifts for powers of 2 since they are very cool ;)
  • Added optional bounds parameters for filtering out requests beyond what the dataset serves / developer needs.
  • Added testing of the bounds logic.

Add more of the functionality I described in #880

munw37 added 6 commits April 2, 2026 16:13
…a shared source of truth.

Refactored numTiles logic to use constants rather than several declarations of the same number.
…MS-dataset to forego needless network requests. If no bounds are provided the getTileUrl skips the checking and goes straight to urlFormatter.

Renamed WMS_BOUND to just BOUND and added it to the comment about EARTH_CIRCUMFERENCE.
One test with xMin as a smidge above centerline (all should be null since no intersection).
 One test with xMax as a smidge below centerline (all should return URLs since no tile is entirely outside of bounds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants