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

John Cartwright john.c.cartwright at comcast.net
Fri May 22 10:55:58 EDT 2009


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.:

$('map').toggle();


However, this doesn't seem to work - javascript complains that:

$("map").toggle() is not a function

Can some one please explain to me?

Thanks!

--john



More information about the Users mailing list