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

240
Visualizações
Defining TileSize when making WMS Request on Leaflet Web page

I am creating a web page with Leaflet to access a WMS server. The issue I have is that I access a paying WMS server that is "counting" the number of requests I make.

In the first attempt I made, since the default tileSize was 256px each of my requests generated 16 tiles requests and so I was "deducted" 16 requests on my account.

I then tried to modify my code as follow :

var wmsserver = L.tileLayer.wms('http://wmsserver/wms?', {
 layers: 'mix:precip_24h:mm' ,
 format: 'image/png',
 tileSize: window.screen.width,  
 version: '1.3.0',
 transparent: true,
});

Now I still have 2 requests logged, and the result on the screen is a little bit shifted.

Result screenshot

There must be a cleaner way to do this.

about 4 years ago · Juan Pablo Isaza
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