Skip to content

feat: Expose onTile callbacks through raster tile layers - #546

Merged
kylebarron merged 4 commits into
mainfrom
kyle/tile-layer-props
May 14, 2026
Merged

kylebarron merged 4 commits into
mainfrom
kyle/tile-layer-props

Conversation

@kylebarron

@kylebarron kylebarron commented May 14, 2026 •

Copy link
Copy Markdown
Member

Add more props to RasterTileLayer (and thus also COGLayer and ZarrLayer)

  • onTileLoad
  • onTileUnload
  • onTileError
  • onViewportLoad

Also add props to MosaicLayer:

  • onSourceLoad
  • onSourceUnload
  • onSourceError
  • onViewportLoad

In the case of the MosaicLayer, it's just an implementation detail that it's a TileLayer under the hood, so we use the term source consistently.

@github-actions github-actions Bot added the feat label May 14, 2026
@kylebarron

Copy link
Copy Markdown
Member Author

cc @yharby

@kylebarron
kylebarron enabled auto-merge (squash) May 14, 2026 20:05
@kylebarron
kylebarron merged commit ac672e9 into main May 14, 2026
4 checks passed
@kylebarron
kylebarron deleted the kyle/tile-layer-props branch May 14, 2026 20:05
@yharby

yharby commented May 14, 2026

Copy link
Copy Markdown

Thank you @kylebarron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants