Hey, Jeremy: Thanks for the reply.
I know enough about javascript to...be a bit dangerous. I've put together some pretty complex pages that rely heavily on stuff I've written, not copied and edited. (Mostly, I work in VBscript/SQL.) I can mostly make it do what I want to do, though I'm unfamiliar with AJAX. So far, what I've seen of the API just feels like plain ol' javascript to me. When it's something I'm not familiar with, like an API, I can usually figure out what I need just by looking at other coding, assuming I can find a search to get me to that coding. I have been all over the playground, however, and throughout the documentation. (At the time I wrote the original post, I had about 40-60 tabs open throughout several Firefox windows, all from code.google.com.) I am still unable to find a way to exclude the ads using google.maps.localsearch. Every search that I did to find out how to do this, whether at code.google.com, Google Groups, or the internet in General, talked about *including* and controlling the adsense ads that came up, not excluding them. I'm unable to find a way to use suppressInitialResultSelection using GSmapSearchControl. I could put it into my routine in such a way as to not cause an error, but it didn't *do* anything; if you search for Venice, the little Venice balloon opens up for GSmapSearchControl, where it didn't with google.maps.localsearch. The addoverlay and setCenter methods will work for GSmapSearchControl if I access it like "map.gmap.method()" (though, as I said, having a problem with the idle map), but I couldn't get suppressInitialResultSelection to work either by adding as an option to GSmapSearchControl or by assigning it, e.g. map.gmap.suppressInitialResultSelection = true. I could also never resolve the zoom issue using GSmapSearchControl. No amount of searching the docs, Google Groups, or the internet in general was able to resolve these issues. A lot of times, it's simply finding the write search term for the search (e.g. when I was trying to get a "My Map" to show up/auto update, it was impossible to find the info searching for "my map" but once I found out about GgeoKML, it was simple). Maybe this is the wrong group? In the Maps API group, they say specifically if you have questions involving the AJAX API, including Local Search, to come here, but maybe I should be asking there instead? Thanks, Julie On May 20, 8:07 pm, Jeremy Geerdes <[email protected]> wrote: > You can build your own mashup which would combine the features you > like from both the LocalSearch control and the GSmapSearchControl. > You'll want to keep the class reference handy, and you can tinker in > the API Playground. In addition to a basic understanding of > Javascript, you'll be able to glean all of the essential principles > that you'll need from those sources. > > http://code.google.com/apis/ajaxsearch/documentation/reference.htmlhttp://code.google.com/apis/ajax/playground/?exp=search#center_locals... > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project > quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com > [email protected] > > Unless otherwise noted, any price quotes contained within this > communication are given in US dollars. > > If you're in the Des Moines, IA, area, check out Debra Heights > Wesleyan Church! > > And check out my blog, Adventures in Web Development, > athttp://jgeerdes.blogspot.com > ! > > On May 20, 2009, at 7:16 PM, Julie wrote: > > > > > Apologies in advance for my stupidity. > > > I'm trying to add a map to a website with a My Maps KML overlay. A > > user will search for a city from a world map (or at least one showing > > U.S. and Europe, at this point) and it will zoom in and show the > > little icon, if one exist for that area. > > > I started out using LocalSearch: > >http://www.untourslocalexpert.com/testmap.asp > > > --Loved suppressInitialResultSelection > > --Liked starting out with the whole world, then the search zooming in > > appropriately on the city searched for. > > --Hated the adsense ad that sometimes comes up - it was often for a > > company that competes with the company who owns this new venture and > > it overwrites a chunk of the map that we want people to see; these > > maps will be getting pretty crowded. > > --Don't like the position of the search bar; didn't like having it on > > the map. > > > So I did the same thing using GSmapSearchControl. > >http://www.untourslocalexpert.com/test6.asp > > > --I love the fact that there are no Adsense ads > > --I love the position of the search bar. > > --Hate that I couldn't get suppressInitialResultSelection to work. > > --I hate the fact that if I set the zoom to the whole world, it stays > > at that zoom when they search for a city. > > --I dislike the green arrow and the city arrow after a search > > (solvable by creating a new icon based on a single pixel > > transparent .gif but I removed that code to keep this simple.) > > --(Also, for some reaons, the KML file doesn't show up on the idle > > map, only the active one, but that's another problem altogether.) > > > Is there a way to eliminate adsense ads and get the positioning of the > > control that you get with GSmapSearchControl, while being able to > > start with a world zoom and zoom in, and still use > > suppressInitialResultSelection like you can with LocalSearch? > > > I hope that made sense. In the first example, the ads are the major > > issue. > > > I have read and read and read and have a screaming headache. I'm > > probably missing something obvious. > > > Would really appreciate some direction. > > > Thanks for any help. > > > Julie > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
