Create your ol.style.Icon only once (outside the style function) or cache
it. It will also improve rendering performance significantly.

Andreas.

On Wednesday, February 28, 2018, Cecile Trace de Trail via OpenLayers Dev <
openlayers-dev+apn2wqejuec2vlneyemm2jqjc5bbvu5epcfalpidtc_-ji...@googlegroups.com>
wrote:

> Hello,
>
> I have a problem when I try to display many points, styled with icons, on
> my map : the icons are flashing !
> It stops when I zoom in on some icons. You can see an exemple here :
> https://tracedetrail.com/assets/test_pi.html
>
> When I add only a few points on the map, there is no problem. Here is the
> same example but with only ten points : https://tracedetrail.com/
> assets/test_pi_10.html
>
> Can you help me solve this problem?
>
> Thanks !
>
> Cécile
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenLayers Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openlayers-dev+unsubscr...@googlegroups.com.
> To post to this group, send email to openlayers-dev@googlegroups.com.
> Visit this group at https://groups.google.com/group/openlayers-dev.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/openlayers-dev/5e98537f-cd14-4160-8520-086ef119d480%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/openlayers-dev/5e98537f-cd14-4160-8520-086ef119d480%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openlayers-dev+unsubscr...@googlegroups.com.
To post to this group, send email to openlayers-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/openlayers-dev/CAOiJ94i7304Q7_YLC3eOZhmbcEwbgjPnDMyTbZq9iz8cViJyFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to