[OpenLayers-Users] using Prototype's element.toggle w/ OpenLayers

Erik Uzureau euzuro at gmail.com
Mon Jun 1 14:35:56 EDT 2009


Alternatively, you can do:

OpenLayers.Element.toggle(document.getElementById('my_element_id'));

erik



On Fri, May 22, 2009 at 10:04, Christopher Schmidt
<crschmidt at 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 at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090601/5da410f8/attachment.html


More information about the Users mailing list