[OpenLayers-Dev] Map id

Frédéric Junod frederic.junod at camptocamp.com
Wed Feb 27 02:44:52 EST 2008


Le Wed, 27 Feb 2008 08:23:12 +0100,
Nils Weinander <nils.weinander at curalia.se> a écrit :

> Fr?d?ric Junod:
>  >
>  > This is not not a good idea to control the CSS by using the id
>  > of the html elements: they are generated by a "random" algorithm
>  > and can change. You have guarantees that the id will always be
>  > "OpenLayers.Map_2.
>  >
>  > Your graphics designer should use the CSS class instead.
> 
> This is indeed the case, but
> 
> Christopher Schmidt:
>  >
>  > And if (as is likely the case) the CSS class isn't set on the
>  > element in question, one should be set.
> 
> This is the reason for using the Id. The ZoomBar (the "ladder")
> and the ZoomBar slider are represented by classless <div>-s with
> a background image.
> 

Understood, Can you please open a ticket for that ?
http://trac.openlayers.org/wiki/FilingTickets 

Regards,

fredj

-- 
Frédéric Junod
Camptocamp SA



More information about the Dev mailing list