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...@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/3fe43388-90e4-4676-a336-9c435628b928%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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+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/cc2cf7a5-2dee-4abe-b724-bd2ced7132da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 rendering performance significantly.
>
> Andreas.
>
>
> On Wednesday, February 28, 2018, Cecile Trace de Trail via OpenLayers Dev
> 
> 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.
>> 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.



-- 
Antoine Abt

Camptocamp France SAS
http://www.camptocamp.com

-- 
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/CAL7xovsr6RrYpCrHW6HP93YodrWYho3-6eGJkAkw2SdRLU9BTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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...@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
> 
> .
> 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.