On Apr 19, 6:34 am, Staffan Nilsson <stasonmo...@gmail.com> wrote: > I need a function to do this: > > 1. Load all available kml-files in the directory onto a Google Map > (houses.kml, roads.kml, etc) > 2. Create a menu for toggling these KML-files (Houses on/off, Roads on/ > off, etc) > 3. Make this work even if kml-files is deleted and new ones are > created > > The kml-files in the directory will be edited several times a month > and they will also be deleted and added from time to time. I need > Google Maps to load all kml-files from the directory and add a toggle > menu for the markers to be shown/hidden. > > Can this be done? Please say 'yes'...
Sure. > If so, how? Most of that is server side programming (determining the "available kml-files in the directory") after that there have been examples posted on how to do the rest. Although as was previously mentioned, there seems to be an undocumented limit of 10 - 15 kml files, not sure if that will affect you or not. -- Larry > > Thank you! > Staffan -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.