On Tue, Nov 18, 2008 at 9:38 AM, <[EMAIL PROTECTED]> wrote: > Hi list, > > it would be convenient if the Vector Layer would have a getStrategyByClass > function or not?
Yes it would. > > On a side note, should the getBy function of Map.js not be a Util one? In that case it'd look like: function(obj, array, property, match) { var test = (typeof match.test == "function"); var found = OpenLayers.Array.filter(obj[array], function(item) { return item[property] == match || (test && match.test(item[property])); }); return found; } Given that Map.getBy is an API method it should remain. However it could rely on the getBy function defined in Util.js: getBy: function(array, property, match) { return OpenLayers.Util.getBy(this, array, property, match) }, I'm +1 on adding a getStrategyByClass method to the Layer.Vector class and on adding a GetBy function to Util.js. Thanks Bart, -- Eric _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev