Ed, Bruno, many thanks for your help and for the welcome! I think I have to spend some hours in studying a little bit more english to be able to find this typo errors :-) I spent 5-6 hours on the hide function, just because of a typo. This is my personal record. Thank you for solving this. -------------- next part --------------> An HTML attachment was scrubbed... > URL: < > http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20101123/c0212cbe/attachment.html > > > > ------------------------------ > > Message: 2 > Date: Tue, 23 Nov 2010 18:26:59 +0000 > From: Ed Freyfogle <edf at sloan.mit.edu> > To: mapstraction at lists.mapstraction.com > Subject: Re: [Mapstraction] hide all markers > Message-ID: > <AANLkTimAq+XLU5UPZM9uj98-LwDDPYTiLo+ERudpc_pV at mail.gmail.com<AANLkTimAq%2BXLU5UPZM9uj98-LwDDPYTiLo%2BERudpc_pV at mail.gmail.com> > > > Content-Type: text/plain; charset="iso-8859-1" > > sometimes the best debugger is a second pair of eyes > > it looks like a typo. try allm.length not allm.lenght > > good luck and welcome to mxn > > > > > > 2010/11/23 Mauro Vignati <vignus at gmail.com> > > > Hi all, > > This is my first post on the list. I am new to mapstraction. > > > > I am trying to hide all the markers using the code I found on the very > good > > book of Adam DuVander. But I am still not able to do that (I am not the > > smartest guy in scripting). > > > > I have this code: > > > > function hideAllMarkers() { > > var allm = mapstraction.markers; > > for (var i=0; i<allm.lenght; i++) { > > var thism = allm[i]; > > thism.hide(); > > } > > }; > > > > Then I call the function in a link: <a > > href="javascript:hideAllMarkers();">hide all</a> > > > > Nothing. What I am doing wrong? You can visit the test page here: > > http://vignati.ch/map/mapstraction2.html > > > > Many thanks for your help > > Mauro > > _______________________________________________ > > Mapstraction mailing list > > Mapstraction at lists.mapstraction.com > > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20101123/426ff5a9/attachment-0001.htm > > > > ------------------------------ > > Message: 3 > Date: Tue, 23 Nov 2010 19:29:43 +0100 > From: Bruno Bergot <brunobergot at gmail.com> > To: mapstraction at lists.mapstraction.com > Subject: Re: [Mapstraction] hide all markers > Message-ID: <4CEC0817.20009 at gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Mauro, > > Try this one ;) > > map.removeAllMarkers(); > > removeAllMarkers removes all the Markers on a map > > ++ > b_b > > Le 23/11/2010 19:21, Mauro Vignati a ?crit : > > Hi all, > > This is my first post on the list. I am new to mapstraction. > > > > I am trying to hide all the markers using the code I found on the very > good > > book of Adam DuVander. But I am still not able to do that (I am not the > > smartest guy in scripting). > > > > I have this code: > > > > function hideAllMarkers() { > > var allm = mapstraction.markers; > > for (var i=0; i<allm.lenght; i++) { > > var thism = allm[i]; > > thism.hide(); > > } > > }; > > > > Then I call the function in a link:<a > > href="javascript:hideAllMarkers();">hide all</a> > > > > Nothing. What I am doing wrong? You can visit the test page here: > > http://vignati.ch/map/mapstraction2.html > > > > Many thanks for your help > > Mauro > > > > > > > > > > _______________________________________________ > > Mapstraction mailing list > > Mapstraction at lists.mapstraction.com > > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > ------------------------------ > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > End of Mapstraction Digest, Vol 37, Issue 8 > ******************************************* >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20101124/75a96ccb/attachment.htm>