Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

241
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda