[OpenLayers-Dev] Cluster strategy getResolution bug ?
eric.c2c at gmail.com
Sun Nov 9 02:35:24 EST 2008
Hi. This is unrelated. Yves's problem came from the fact that he was
giving the map custom scales while using a Google layer. Eric
2008/11/8, Ivan Grcic <ivan.grcic at geofoto.hr>:
> And i think it might be connected to with
> On Sat, Nov 8, 2008 at 12:00 AM, Ivan Grcic <ivan.grcic at geofoto.hr> wrote:
>> 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 <adube at mapgears.com>
>>> 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 with or
>>> without the cluster strategy applied. After a few search, I found out
>>> the problem was at line 143 : *var* resolution =
>>> I just replaced the line for : *var* resolution =
>>> *this*.layer.map.getResolution(); and it worked.
>>> The reason is :
>>> My base layer has 10 fixed scales ( which gives 10 resolutions), from
>>> 0 to 9. My vector layer has only 7, which represents resolutions 3 to 9
>>> of the base layer's scales, but the vector layer itself has his own
>>> scales array from 0 to 6. So, the line 143 which called resolution 3
>>> from the base layer calls resolution 3 from the vector layer, which is
>>> wrong !
>>> Anyone else noticed this ?
>>> Alexandre Dubé
>>> Dev mailing list
>>> Dev at openlayers.org
>> Ivan Grcic
> Ivan Grcic
> Dev mailing list
> Dev at openlayers.org
More information about the Dev