Efficient way to import a few hundred images

14 Views Asked by At

We have a few hundreds of images (icons) that we're adding to a map to be shown once our feautures are rendered.

We use (simplified):

map.loadImage('url', () => map.addImage('name', image as ImageBitmap));

This results in as many http requests as there are images and in our case that is a few hundreds of http requests.

Is there any other way to import images to reduce the number of http calls?

0

There are 0 best solutions below