Re: [ol3-dev] Re: Map featureAtPixel not always working on text style

2016-08-11 Thread OL3 Dev on behalf of Andreas Hocevar
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
 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
> 
> 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 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/329b1676-8553-49cc-8a99-462600c9936c%40googlegroups.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Andreas Hocevar
> Geospatial Solutions Engineer | Boundless
> ahoce...@boundlessgeo.com
> @boundlessgeo



-- 
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/CAOiJ94g10m__4CD%3DSKQu%3DA4M7UCN%2Bi2w0HQM%3Dq2vXLDMK4tqOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ol3-dev] Re: Map featureAtPixel not always working on text style

2016-08-11 Thread OL3 Dev on behalf of Andreas Hocevar
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

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 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/329b1676-8553-49cc-8a99-462600c9936c%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/CAOiJ94gv1CNqferEwRtKwVu6E7qmUadZ2mmeqendAWH4o6D8Ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ol3-dev] Re: Rectangle features disappear when zooming if they are too small

2016-08-04 Thread OL3 Dev on behalf of Andreas Hocevar
This was a bug that has been fixed, and the fix is in the latest
release (v3.17.1) already. See
https://github.com/openlayers/ol3/pull/5511. I created an updated
version of your JSFiddle that uses v3.17.1:
https://jsfiddle.net/obj1z9cb/24/.

Andreas.

On Fri, Aug 5, 2016 at 2:12 AM,

wrote:
> Apologies, the issue is only with the feature disappearing when zooming out,
> not zooming in.
>
> -Leila
>
> --
> 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/aecaa064-16bd-47e5-b737-c119b7839717%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAOiJ94gnGUKHbKeLy%2BCjnMF9CztE4jXd%3DQGZjrPn2m2figLPUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.