Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-10 Thread Tim Schaub
Hey- Alexandre Dube wrote: Hi Eric, Ok, I understand what you mean. But I already set specific scales to the vector layer that are supposed to give the same resolutions I need. I mean : Base layer (map) has scales in its options: [ 10, 5, 25000, 1, 5000, 2500, 1000,

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-10 Thread Ivan Grcic
Hi, I'll try to make some little example tomorrow, because I think there is some strange behavior when you supply resolution array to vector layer with cluster strategy. Then the problem will be little bit clearer I guess... Ivan On Mon, Nov 10, 2008 at 6:49 PM, Tim Schaub [EMAIL PROTECTED]

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-10 Thread Alexandre Dube
Ok thanks Tim, I had some trouble at first trying to use minResolution/maxResolution... But quickly found out that when you want a layer only visible at a certain reach, you must choose either scale OR resolution to work with, not both. I was setting maxResolution to 3.527775872778806 but

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-10 Thread Tim Schaub
Hey- Ivan Grcic wrote: Hi, I'll try to make some little example tomorrow, because I think there is some strange behavior when you supply resolution array to vector layer with cluster strategy. Then the problem will be little bit clearer I guess... It was an oversight to have the cluster

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-08 Thread Eric Lemoine
Hi Alexandre If you want your vector layer to be visible only for a subset of the base layer's resolutions you should set maxResolution and/or minResolution in your vector layer options. If you pass an array of resolutions to the vector layer, you can end up with vectorlayer.resolutions[i] !=

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-07 Thread Ivan Grcic
Yup, and i was about to fill this one too :) Did u fill the ticket allready? On Fri, Nov 7, 2008 at 10:30 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Hi devs, I got a problem using the cluster strategy. At first, it didn't seemed to work at all. I always got the same number of feature

Re: [OpenLayers-Dev] Cluster strategy getResolution bug ?

2008-11-07 Thread Ivan Grcic
And i think it might be connected to with http://www.nabble.com/Cluster-and-Scales-map-options-td20224740.html#a20224740 On Sat, Nov 8, 2008 at 12:00 AM, Ivan Grcic [EMAIL PROTECTED] wrote: Yup, and i was about to fill this one too :) Did u fill the ticket allready? On Fri, Nov 7, 2008 at