Hi Barry Thanks for getting back to me and sorry for the late response - I've been down Mexico way without an internet connection (bliss!)
By the looks of it, this would require more JavaScript expertise than I have. I presume that this would be something that many people would like to use, so I was hoping that someone else might have figured out how to do this, and been generous enough to share it with everyone. As well as Dundee Univeristy I'm also working with a friend who wanted to develop a map-based list of local food producers, and My Maps would seem to be ideal if there was a simple "search within this map" function. Oh well - I guess I'll keep looking! Adrian On Dec 8 2008, 2:13 pm, "Barry Hunter" <[email protected]> wrote: > Yes this would be possible with the API, but you would be required to > implement the 'search' in javascript.My Mapsexports a KML file of > the data, that can be loaded into a API based map (but dont use > GGeoXml as that doest expose the data) > > Alternately you might be able to use the search of Google Maps. Google > Maps indexes and makes searchable KML files it finds on the web. And > you can use 'site:domain.com' and/or 'inurl:' to restrict results to a > particular file (or set of files). I'm not convinced GMaps will index > the KML file directly fromMy Maps, but you could proxy the file to > make the KML file appear on your own domain. The drawback with this > appraoch is you would need to ensure that that file is indexed - so it > would need to be well linked, but also there would be a delay between > changing the base map and the changes showing up in the search > > 2008/12/8 adrian <[email protected]>: > > > > > > > I'm assuming that this question has actually been answered, but I > > can't for the life of me find an answer after searching this group or > > theMy Mapsgroup. If someone could point me in the right direction, > > or if it in fact hasn't been answered let me know where to start, I'd > > really appreciate it. > > > I'm working out how to develop a campus map for the University of > > Dundee using Google Maps, so that we can embed it on the site and also > > think about using it for mobile phones:http://tinyurl.com/campusmap > > > What I'd like to be able to do is to search within the locations on > > that map, excluding other user-generated locations (the map is not > > public at the moment because I want it to be complete and correct > > before we let people loose on it! I'll make it public once we've got > > everything there.) > > > It seems that this isn't possible just usingMy Maps, so I was > > wondering whether this would be possible with the API. What I'd like > > to happen is that someone comes to a page with the map embedded in it, > > search for "cafe", and be shown any locations within the campus map, > > such as Student Union Cafe, and Tower Cafe, but not any nearby non- > > University cafes. We'd obviously be doing the same for departments, > > but "cafe" seemed like a better example as there is more than one of > > them. > > > How would I go about doing this? Is there a simple read-written > > script that would enable this, or might I have to go about making an > > external XML data source? > > > Thanks > > > Adrian > > -- > Barry > > -www.nearby.org.uk-www.geograph.org.uk- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
