Re: [openlayers-dev] Problem with flashing icons

2018-02-27 Thread Cecile Trace de Trail via OpenLayers Dev
Merci Antoine ! J'avais déjà testé un correctif, mais ça semble être très similaire. -- 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..

Re: [openlayers-dev] Problem with flashing icons

2018-02-27 Thread Cecile Trace de Trail via OpenLayers Dev
Yes, it does the job ! https://tracedetrail.com/assets/test_pi_solved.html Thanks Andreas. -- 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+uns

Re: [openlayers-dev] Problem with flashing icons

2018-02-27 Thread OpenLayers Dev on behalf of Antoine Abt
See https://openlayers.org/en/latest/examples/earthquake-custom-symbol.html for an example with cached styles. On 28 February 2018 at 08:19, OpenLayers Dev on behalf of Andreas Hocevar wrote: > Create your ol.style.Icon only once (outside the style function) or cache > it. It will also improve re

Re: [openlayers-dev] Problem with flashing icons

2018-02-27 Thread OpenLayers Dev on behalf of Andreas Hocevar
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...@googlegroup