Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

124
Visualizações
Mapbox raster tiles disappearing despite setting maxzoom

I use raster tiles in my Mapbox application, which I integrate as follows:

  map.addSource('sourceID', {
    type: 'raster',
    tiles: ['URL_TO_TILES'],
    maxzoom: 22,
    minzoom: 0,
  });

  map.addLayer({
    id: 'layerID',
    type: 'raster',
    source: 'sourceID',
    rasterOpacity: 0.5,
    rasterResampling: 'nearest',
  });

According to the docs, the expected behaviour for maxzoom should be:

Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.

In my case the tiles just disappear on zoom level 11, although I have set a maxzoom

Is this caused by the tiles from the server or do I need to adjust my Mapbox code?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You're most likely misinterpreting the spec.

Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.

If your tiles are disappearing at zoom 11, it's most likely that they are not available (on the server that is providing them) at higher zoom levels than 11.

So you should set your maxzoom to 11. The raster tiles will be overzoomed (pixelated) as you zoom further in.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda