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

425
Views
Full screen OpenLayer Map : Higher pixel resolution on portrait mode than on landscape?

I am building a simple map show meteo and wind information for a Sail race in Switzerland. Everything is working as expected, BUT one thing.

The screen resolution between portrait and landscape is different. The width and height are not inversed but massively different. The main issue is on portrait as the resolution seems 2 times higher, the map is supper sluggish. Also the layer haven't the same resolution at all depending on the mode.

On my pixel 5: Portrait mode = Height: 2121 / width: 980 Landscape mode = Height:453 / width: 980

So far, I have managed the scale of my additional vector layer and the default zoom level depending on screen orientation, but the overal map as a complete different scale

The app is a basic OpenLayer based map written in HTML.

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!