[OpenLayers-Dev] GetFeature control question
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Jan 11 09:48:27 EST 2010
On Mon, Jan 11, 2010 at 3:22 PM, Bart van den Eijnden <bartvde at osgis.nl> wrote:
> Hi list,
>
> I am failing to understand the following line in OpenLayers.Control.GetFeature:
>
> maxFeatures: options.single == true ? this.maxFeatures : undefined,
>
> I would expect it to be:
>
> maxFeatures: options.single == true ? 1: this.maxFeatures,
>
> so if we only want a single feature, have it set to 1, otherwise use the maxFeatures given by the application designer.
I'd make more sense to me too.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Dev
mailing list