So it means I just need to make the map variable global? That would solve the problem?
And Yes, there is a special reason. The properties are in a database and if I don't put the script tag inside the cycle for it prints the properties on the page instead of generating it as javascript. On Sat, Sep 19, 2009 at 2:23 PM, Pil (Trustworthy from Experience) < [email protected]> wrote: > > Your variable map is not made global. So when you check or uncheck a > checkbox map is not defined in function hide() > > Is there a special reason why every created icon is surrounded by a > sepeparate script tag? If there is no special reason I would say this > is inefficient. > > > > > On Sep 19, 2:54 pm, Miguel Ribeiro <[email protected]> wrote: > > Hi, > > > > I have a page with the map only and another with the page with some > > CSS. > > The thing is: both pages share the code for the map (all JS is inside > > files that are included into the the pages so I only have to update > > one file when I want to change something) > > > > I really don't know why they aren't showing up since the code is > > pratically the same. > > When I load the page, firebug gives me no error but when I try to hide > > one type of the markers (using the checkboxes below the map) it gives > > me the following error: > > > > "map is not definedhttp://www.afac-online.org/site/Mapa.php > > Line 363" > > > > The map with no CSS :http://www.afac-online.org/site/maps/ > > The map with CSS :http://www.afac-online.org/site/Mapa.php > > File that generates XML (shared by both files) : > http://www.afac-online.org/common/generateXML.php > > File that contains all the JS (also shared) : > http://www.afac-online.org/site/maps/meta.php > > > > Hope you can help me :) > > Thanks in advance > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
