Alternatively, you can do: OpenLayers.Element.toggle(document.getElementById('my_element_id'));
erik On Fri, May 22, 2009 at 10:04, Christopher Schmidt <crschm...@metacarta.com>wrote: > On Fri, May 22, 2009 at 08:55:58AM -0600, John Cartwright wrote: > > Hello All, > > > > I'm using OL 2.7 and expected to be able to use Prototype's facilities > > like element.toggle w/o having to explicitly load prototype.js, e.g.: > > OpenLayers is not based on prototype, and does not include prototpe > functions like this. (Some core parts of OpenLayers were, at one point, > based on prototype, but all semblance of being able eto use prototype > with OL is essentially dead.) > > You'll need to load Prototype.js yourself. > > Best Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users