[OpenLayers-Dev] [OpenLayers-Trac] [OpenLayers] #966: Add attribution control to map by default

Erik Uzureau erik.uzureau at metacarta.com
Wed Sep 12 10:14:25 EDT 2007


As long as we're batting it around, can anyone toss out a use case
when one would *not* want to have the attribution control on the map?

e


On 9/12/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> On Wed, Sep 12, 2007 at 10:01:48AM -0400, Paul Spencer wrote:
> > Chris,
> >
> > by default, do you mean that if you construct a new map with an empty
> > controls option, the attribution would be created anyway, or would
> > not be created?
>
> Not created. That's a 'deliberate action' in my mind -- If you're
> overriding the controls, you're doing it with that goal in mind, and you
> would then need to add the control back.
>
> If a commercial data provider really wants to ensure that their data is
> only used with an attribution control on the map, they can loop through
> the controls list when setmap is called and throw an error in some way
> if the attribution control is not present (by checking CLASS_NAME).
>
> As with anything, it isn't foolproof -- just handy.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



More information about the Dev mailing list