Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!