See updated fiddle: http://jsfiddle.net/ahocevar/b2vzykob/1/. It has the `renderBuffer` option added.
Andreas. On Thu, Aug 11, 2016 at 9:33 PM, Andreas Hocevar <[email protected]> wrote: > It is expected behaviour. Make sure you configure the layer with a > `renderBuffer` that is big enough to contain all your text. > > Andreas. > > On Thu, Aug 11, 2016 at 9:29 PM, Alexandre Dubé via OL3 Dev > <ol3-dev+apn2wqczcp2xihkh_9pnmlmzqzt5pahrybqkz3ux9372k6f2cajq2...@googlegroups.com> > wrote: >> If I may add: in the example, when mouse hovering the feature the cursor is >> supposed to change. Notice that it only occurs when the mouse is at the >> center of the feature, i.e. there seems to be a large invisible zone in the >> middle where the detection works, but out of that it doesn't (on the left >> and right edges of the feature). >> >> On Thursday, 11 August 2016 15:22:54 UTC-4, Alexandre Dubé wrote: >>> >>> Hi devs, >>> >>> It would seem that the `forEachFeatureAtPixel` and `hasFeatureAtPixel` >>> methods of the `ol.Map` object doesn't always work on features rendered with >>> a text style. It seems to occur when the text is long and big. I made an >>> example that shows the issue: >>> >>> http://jsfiddle.net/b2vzykob/ >>> >>> Is this a known issue? An expected behavior, maybe? >>> >>> Thanks for any pointer, >>> >>> Alexandre Dubé >> >> -- >> You received this message because you are subscribed to the Google Groups >> "OL3 Dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/ol3-dev. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ol3-dev/329b1676-8553-49cc-8a99-462600c9936c%40googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Andreas Hocevar > Geospatial Solutions Engineer | Boundless > [email protected] > @boundlessgeo -- Andreas Hocevar Geospatial Solutions Engineer | Boundless [email protected] @boundlessgeo -- You received this message because you are subscribed to the Google Groups "OL3 Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ol3-dev. To view this discussion on the web visit https://groups.google.com/d/msgid/ol3-dev/CAOiJ94g10m__4CD%3DSKQu%3DA4M7UCN%2Bi2w0HQM%3Dq2vXLDMK4tqOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
