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

[docsprint] Add example to MapDataEvent #9597

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/ui/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ export type MapBoxZoomEvent = {
* the event is related to loading of a tile.
* @property {Coordinate} [coord] The coordinate of the tile if the event has a `dataType` of `source` and
* the event is related to loading of a tile.
* @example
* // The `sourcedata` event is an example of `MapDataEvent`.
* // Set up an event listener on the map.
* map.on('sourcedata', function(e) {
* if (e.isSourceLoaded) {
* // Do something when there are no more
* // outstanding network requests
* }
* });
*/
export type MapDataEvent = {
type: string,
Expand Down