setAnnotationTexture: Possible to have multiple textures at the same time?

Hello there,

I am pretty new at this, and I’m having trouble understanding the CORS-enabled images for custom annotation textures. I will eventually figure it out but I wanted to know if it was possible to have more than one annotation image used at the same time? Let’s say I would like to have annotation 1 to 5 a specific texture while 6 to 10, another one, and so on.

Thank you very much!


It’s not possible as of now to use multiple texture, but sure can have different drawing for each annotation ?

In that sampel each annotation is drawn into an HTML canvas in the computePastilles function, you

Thank you and sorry for the late reply! I finally managed to understand the way this function works. It was quite easy actually!

1 Like