Thanks Andreas!! Em terça-feira, 26 de julho de 2016 10:59:24 UTC-3, Andreas Hocevar escreveu: > > 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 < > ol3-dev+apn2wqc3slt7x3hea31pirytouijxpylg7bbbi21fk2hxcjethygw...@googlegroups.com > > <javascript:>> > 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > 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 > [email protected] <javascript:> > @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/cb4c4abd-c843-4e5e-a8f7-e525adafc288%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
