Skip to content

Add onTileUnload callback for TileLayer - #4936

Merged
kylebarron merged 4 commits into
visgl:masterfrom
austintang:tile-clear-callback
Sep 14, 2020
Merged

kylebarron merged 4 commits into
visgl:masterfrom
austintang:tile-clear-callback

Conversation

@austintang

Copy link
Copy Markdown
Contributor

For #4935

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

// TODO - change to onViewportLoad to align with Tile3DLayer
onViewportLoad: {type: 'function', optional: true, value: null, compare: false},
onTileLoad: {type: 'function', value: tile => {}, compare: false},
onTilePurged: {type: 'function', value: tile => {}, compare: false},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a bad name. I wonder if onTileUnload would make sense? It would be more symmetrical with onTileLoad...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I think onTileUnload is a good name for this - I'll make the change.

@austintang austintang changed the title Add onTilePurged callback for TileLayer Add onTileUnload callback for TileLayer Sep 11, 2020
@coveralls

coveralls commented Sep 11, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.009%) to 83.529% when pulling 834ecda on austintang:tile-clear-callback into 0c80e8f on visgl:master.

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.

4 participants