I think I understand your confusion although this adds to my confusion :-).
It comes from the OGC world where a Layer has a Name and Title, where a name is more cryptic and a title is more descriptive. But if I get it right the OpenLayers name is actually the OGC title ... and layers are never identified by its name but only by its object representation. So there shouldn't be any problem in fact, except that the current LayerSwitcher does not deal correctly I think with layers that have the same name, since the ids of the input elements will be the same in that case, or am I mistaken? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Christopher Schmidt <[EMAIL PROTECTED]> Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]> Cc: [email protected] Onderwerp: Re: [OpenLayers-Users] Layer: Name and Title Datum: 21/09/07 11:16 > On Fri, Sep 21, 2007 at 02:08:30PM +0200, Bart van den Eijnden (OSGIS) wrote: > > Hi list, > > > > currently an OpenLayers Layer object only has a name property, and this is > > used for display. > > > > If you would introduce the concept of group layers, you could have the > > situation where you want to give the same name to multiple layers (since > > this is also displayed in the GUI). > > > > Would it not be better to have both a title and name property on the Layer > > object? > > I'm confused. > > 1. I don't think more than one 'name for display purposes' should be > required. > 2. Any property sent in the options for a layer is set as a property > on that layer, which can be taken advantage of by any controls, etc. > (See attribution.html example, for example.) > 3. I don't see what UI element would display anything other than > 'name' with the current code. > > Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
