Yes this would be possible with the API, but you would be required to implement the 'search' in javascript. My Maps exports 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 from My 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 > the My Maps group. 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 using My 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 -~----------~----~----~----~------~----~------~--~---
