Mapbox event when brand new tile is loaded

I’m using Mapbox GL JS API to manipulate a Mapbox map.
My question if there’s an event that’s capable of telling me for each HTTP request for new tile?
I finish with a code like this:

  map.on("dataloading", e => {
   if(e.dataType === "source" && e.source.url && e.tile) {
     //Fresh HTTP request to Mapbox API ?

Im using this & this docs

127 thoughts on “Mapbox event when brand new tile is loaded”

  1. My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type
    on various websites for about a year and am nervous
    about switching to another platform. I have heard fantastic things about
    Is there a way I can transfer all my wordpress content into it?
    Any help would be greatly appreciated!


Leave a Comment