Hi, I don't think I have been quite clear with what I am trying to do. I do not want search results to display in the map at all. Search results should appear as they would do normally after executing a Google Custom Search (GCS) (usually opens a new tab in the browser). All I want to do is to display my ready made GCS box WITHIN the ready made Google Map that I want to appear. It is purely for ease of finding the search box. I can already embed my Google Map (that I have already made) onto my web page using the code provided by Google Maps in their link box. I can also embed my GCS box on my web page but they appear one under the other, whereas I want the GCS box to appear WITHIN the frame of the map. Other than that I do not want the map to do anything except appear exactly as I have already made in Google Maps, I do not want it to change in any way, except to have the GCS box within the frame of the map.
Thank you Amy On Apr 2, 7:29 am, Jeremy Geerdes <[email protected]> wrote: > Actually, the CSE Overlay that you are using is not the same thing as > a GControl that can be just plugged into the Maps API. I am curious, > are you really wanting to display search results from your Custom > Search Engine on your map, or are you wanting to implement a > LocalSearch control of some sort, which would provide latitude and > longitude information so that you can place markers on the map? If > you're trying to do the latter, Petrogad's suggestion should be > absolutely perfect. Otherwise, you're going to have to build your own > custom control. > > 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 Apr 2, 2009, at 9:18 AM, Petrogad wrote: > > > > > Amy- > > > The Link I sent you shows how you can use the G_Control to add a > > control object over your map. What you will want to do is go through, > > and either add your aprticular form on the map using the G_Control > > method > > (documentation:http://code.google.com/apis/maps/documentation/reference.html#GContro...) > > or add the local search control on it. > > > Good Luck! > > -Pete > > > On Apr 1, 11:37 am, Amy <[email protected]> wrote: > >> Thank you Pete, > > >> Are you able to give me any pointers on where to place this code > >> within my existing code given above? Also, do I just place the > >> snippet > >> from the link or the whole source code associated with the link?I > >> have > >> been trying by trial and error for the last hour but with no luck. I > >> am not a programmer and have only very limited experience with code. > > >> Amy > > >> On Apr 1, 5:48 am, Petrogad <[email protected]> wrote: > > >>> Amy- > > >>> You should be able to use something this example to place your > >>> search > >>> bar right in your map. > > >>>http://code.google.com/apis/ajax/playground/#map_control_localsearch > > >>> Good Luck! > >>> Thanks > >>> -Pete > > >>> On Mar 31, 9:52 am, Amy <[email protected]> wrote: > > >>>> I would like to have my Google custom search box appear in the top > >>>> right hand corner of the map itself (not outside of the map). Is it > >>>> possible to put the GCS code into the Map code? If so, these are > >>>> the 2 > >>>> codes. I am not a programmer so need clear instructions or for the > >>>> code to written so that I can just cut and paste the new code. > >>>> Thank > >>>> you. > >>>> Code for GCS > >>>> <form id="cse-search-box" action="http://www.google.com/cse"> > >>>> <div> > >>>> <input value="005201463466432140607:50nf9f3itre" name="cx" > >>>> type="hidden"/> > >>>> <input value="UTF-8" name="ie" type="hidden"/> > >>>> <input name="q" size="31" type="text"/> > >>>> <input value="Search" name="sa" type="submit"/> > >>>> <select name="as_qdr"> > >>>> <option value="all"/>Any time > >>>> <option value="d"/>Past 24 hours > >>>> <option value="w"/>Past week > >>>> <option value="w2"/>Past 2 weeks > >>>> <option value="m"/>Past month > >>>> <option value="m2"/>Past 2 months > >>>> <option value="m6"/>Past 6 months > >>>> <option value="y"/>Past year > >>>> <option value="y2"/>Past 2 years > >>>> <option value="y5"/>Past 5 years > >>>> <option value="y10"/>Past 10 years > >>>> </select> > >>>> </div> > >>>> </form> > >>>> <script src="http://www.google.com/coop/cse/brand?form=cse-search- > >>>> box&lang=en" type="text/javascript"></script> > >>>> Code for Maps > >>>> <iframe width="425" height="350" frameborder="0" scrolling="no" > >>>> marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms? > >>>> ie > >>>> = > >>>> UTF8 > >>>> & > >>>> ;hl > >>>> = > >>>> en > >>>> & > >>>> ;msa > >>>> = > >>>> 0 > >>>> & > >>>> ;msid > >>>> = > >>>> 112557391842943178341.0004665d38c50ab983c98 > >>>> & > >>>> ;ll > >>>> = > >>>> 26.72286,21.967163 > >>>> &spn=24.26792,-161.993408&output=embed"></ > >>>> iframe><br /><small><a href="http://maps.google.com/maps/ms? > >>>> ie > >>>> = > >>>> UTF8 > >>>> & > >>>> ;hl > >>>> = > >>>> en > >>>> & > >>>> ;msa > >>>> = > >>>> 0 > >>>> & > >>>> ;msid > >>>> = > >>>> 112557391842943178341.0004665d38c50ab983c98 > >>>> & > >>>> ;ll > >>>> =26.72286,21.967163&spn=24.26792,-161.993408&source=embed" > >>>> style="color:#0000FF;text-align:left">View Larger Map</a></small> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
