src/mbgl/tile/custom_geometry_tile.cpp
void CustomGeometryTile::setNecessity(TileNecessity newNecessity) {
   if (newNecessity != necessity || stale ) {
        necessity = newNecessity;
        if (necessity == TileNecessity::Required) {
            loader.invoke(&style::CustomTileLoader::fetchTile, id, actorRef);
            stale = false;
        } else if (!isRenderable()) {
            loader.invoke(&style::CustomTileLoader::cancelTile, id);
        }
    }
}
//Fetching tile data for custom sources is assumed to be an expensive operation.
// Only required tiles make fetchTile requests. Attempt to cancel a tile
// that is no longer required.
Fetching tile data for custom sources is assumed to be an expensive operation.
Only required tiles make fetchTile requests. Attempt to cancel a tile
that is no longer required.
Fetching tile data for custom sources is assumed to be an expensive operation . Only required tiles make fetchTile requests . Attempt to cancel a tile that is no longer required .
void CustomGeometryTile::setNecessity(TileNecessity newNecessity) {
   if (newNecessity != necessity || stale ) {
        necessity = newNecessity;
        if (necessity == TileNecessity::Required) {
            loader.invoke(&style::CustomTileLoader::fetchTile, id, actorRef);
            stale = false;
        } else if (!isRenderable()) {
            loader.invoke(&style::CustomTileLoader::cancelTile, id);
        }
    }
}
void CustomGeometryTile :: setNecessity ( TileNecessity newNecessity ) { if ( newNecessity != necessity || stale ) { necessity = newNecessity ; if ( necessity == TileNecessity :: Required ) { loader . invoke ( & style :: CustomTileLoader :: fetchTile , id , actorRef ) ; stale = false ; } else if ( ! isRenderable ( ) ) { loader . invoke ( & style :: CustomTileLoader :: cancelTile , id ) ; } } }
Fetching tile data for custom sources is assumed to be an expensive operation.
Fetching tile data for custom sources is assumed to be an expensive operation .