Thank you Larry, that's exactly the way I wanted this map to be. Going through the suggestions shown above, I wouldn't has recognized that just this one line of code removal would do what I wanted. I don't know if you actually looked at my map and it's code to see what I had, or you just know code enough to recognize what was needed to be done, but I appreciate your actually giving me the answer rather then suggesting I go back to the suggested links above which I've done a lot of times and still couldn't find the answer since none of the above suggestions actually hide all the icon markers until they are selected, they have their icons always showing. For the kind of code I have for my map, your information is a perfect answer.
On Nov 23, 1:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 23, 1:08 pm, Gil <[EMAIL PROTECTED]> wrote: > > > On my map, I have a lot of markers that show up when the map loads, > > but I have the side bar all unchecked. How can I stop all the markers > > from showing until any colored marker in the side bar is selected. > > http://www.geocities.com/gilbert_fogoros/ > > This is the line in createMarker that is adding the maker to the map > and making it visible: > map.addOverlay(marker); > > If you don't want any markers to show on initial load, remove it. The > "Markers" function will display them when the box is checked. > > Warning: some browsers remember the state of the check boxes when you > refresh the page, removing an overlay that hasn't been added to the > map, or re-adding an overlay that has already been added to the map > may yield strange behavior. > > -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
