map-gl-utils icon indicating copy to clipboard operation
map-gl-utils copied to clipboard

[Feature request] Add handler for source and layer loaded events

Open markusand opened this issue 3 years ago • 9 comments

This utility library is really handy. One valuable utility that would solve many people's headaches would be to have a reliable way to detect when a source or layer has been loaded properly.

map.U.onSourceLoad('sourcename', features => {
    // Do whatever with features
});

map.U.onLayerLoad('layername', () => {

});

markusand avatar Jan 28 '21 09:01 markusand