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

123
Views
openlayers 15k+ image markers performance

I'm migrating from leaflet map to openlayers. My map requires me to display about 12k markers right now and this amount could grow up to about 60k (most of markers are rotated by various angles).

In leaflet, after a lot of attempts I've achived this. I combined leaflet-canvas-markers with my own cache implementation, so at last it's able to display 12k items without any visible glitches (on a relatively strong computer).

Now I'm trying to reimplement it with openlayers. I see Icon markers and RegularShape display on a canvas already, it's cool, but performance is still below required, here is the codepen demo (just increase to 30k markers for example if your computer is too fast):

https://codepen.io/zxwild/pen/KKyRRKv

The question is: How to increase performance to display 15k-60k markers?

On my own implementation I use a hidden canvas, which contains all possible markers variants, and rotated variants are cached too.

So when I need to redraw a marker I just retrieve a required section from this canvas cache by X and Y and copy it to a map canvas, it's a very fast operation.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

First, I really suggest that you consider clustering - the map will be more readable with it anyway.

Second, if most people do not start with a global world view, you will benefit a lot from using vector tiles - especially with geojson-vt and eventually supercluster for server-side clustering that will allow you dramatically reduce the amount of data loaded from the server.

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