Re: [ol3-dev] Re: Openlayers 3 - Interaction and pointermove

2016-07-26 Thread OL3 Dev on behalf of Andreas Hocevar
This is not a bug in OpenLayers. I added an answer on Stackoverflow.

Andreas.

On Tue, Jul 26, 2016 at 3:32 PM, Marcos Oto Picarelli Prado via OL3
Dev 

wrote:
> Stackoverflow reported as bug.
>
> http://stackoverflow.com/questions/38573214/openlayers-3-interaction-and-pointermove
>
> Where should I open a bug?
>
> Em segunda-feira, 25 de julho de 2016 11:16:28 UTC-3, Marcos Oto Picarelli
> Prado escreveu:
>>
>> Hi,
>>
>> I'm trying to activate an interaction when the mouseover is inside some
>> feature.
>>
>> It is working so so... the problem is if you move your mouse slowly the
>> interaction keep active.
>>
>> Is it a bug on OL3, or should I do in a different way?
>>
>> Code: http://jsfiddle.net/gmaq54dm/3/
>> olMap.on("pointermove", function (e) {
>> if (e.dragging) {
>> return;
>> }
>> var map = e.map;
>> console.log(e.pixel);
>> var feature = map.forEachFeatureAtPixel(e.pixel, function(feature,
>> layer) {
>>   return feature;
>> });
>> var hit = (feature) ? true : false;
>> console.log(hit);
>> olDraw.setActive(hit);
>> });
>>
>>
>> Thanks
>
> --
> 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 ol3-dev+unsubscr...@googlegroups.com.
> To post to this group, send email to ol3-dev@googlegroups.com.
> 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/f8e27d68-0f52-4442-8ee9-705ae1a7c8e6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Andreas Hocevar
Geospatial Solutions Engineer | Boundless
ahoce...@boundlessgeo.com
@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 ol3-dev+unsubscr...@googlegroups.com.
To post to this group, send email to ol3-dev@googlegroups.com.
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/CAOiJ94j%3DOtNKGfOkxGJWXKp3Qh3pUgZns7sREXv1rg1SDT%2BNRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ol3-dev] Re: Openlayers 3 - Interaction and pointermove

2016-07-26 Thread Marcos Oto Picarelli Prado via OL3 Dev
Stackoverflow reported as bug.

http://stackoverflow.com/questions/38573214/openlayers-3-interaction-and-pointermove

Where should I open a bug?

Em segunda-feira, 25 de julho de 2016 11:16:28 UTC-3, Marcos Oto Picarelli 
Prado escreveu:
>
> Hi,
>
> I'm trying to activate an interaction when the mouseover is inside some 
> feature.
>
> It is working so so... the problem is if you move your mouse slowly the 
> interaction keep active.
>
> Is it a bug on OL3, or should I do in a different way?
>
> Code: http://jsfiddle.net/gmaq54dm/3/
> olMap.on("pointermove", function (e) {
> if (e.dragging) {
> return;
> }
> var map = e.map;
> console.log(e.pixel);
> var feature = map.forEachFeatureAtPixel(e.pixel, function(feature, 
> layer) {
>   return feature;
> });
> var hit = (feature) ? true : false;
> console.log(hit);
> olDraw.setActive(hit);
> });
>
>
> Thanks
>

-- 
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 ol3-dev+unsubscr...@googlegroups.com.
To post to this group, send email to ol3-dev@googlegroups.com.
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/f8e27d68-0f52-4442-8ee9-705ae1a7c8e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.