Discussion:
Adding search results to search map?
jeff lemon
2007-08-10 15:11:05 UTC
Permalink
Hi,

Im trying to add a search results box to my search map, but im a
newbie and i cant get it to work.

I want it to look like this:

http://www.google.com/uds/solutions/mapsearch/index.html

(after you have searched a box comes up below)

How can I do this? Ive tried looking at googles code on there site but
i cant get it to work...
jgeerdes
2007-08-10 16:41:05 UTC
Permalink
Does this mean that you actually used the Map Search Wizard? If you
do that (there's a link on the page you referenced), the wizard will
give you all of the code that you need. Just copy and paste it into
your HTML editor, and it should work.

If you've tried that without success, then I suggest posting a link to
your site so we can better debug it.

Jeremy R. Geerdes
Effective Website Design & Development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
warden
2007-08-10 16:43:46 UTC
Permalink
Post by jgeerdes
Does this mean that you actually used the Map Search Wizard? If you
do that (there's a link on the page you referenced), the wizard will
give you all of the code that you need. Just copy and paste it into
your HTML editor, and it should work.
The background to the request is in this thread:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/35c50c6589ce52cf/#
and it's to do with getting search functionality but with accessible
markers. The search control doesn't allow other code to manipulate the
marker.

Andrew
jgeerdes
2007-08-10 16:47:34 UTC
Permalink
Alternatively, you might consider the Local Search control, which is
actually displayed on the map. Check it out at the link below:

http://googleajaxsearchapi.blogspot.com/2007/06/local-search-control-for-maps-api.html

Jeremy R. Geerdes
Effective Website Design & Development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
***@mchsi.com
jeff lemon
2007-08-11 10:41:08 UTC
Permalink
Yes, I used the wizard, but it doesnt let you put the search results
below the search box, thats what im stuck on...
Post by jgeerdes
Alternatively, you might consider the Local Search control, which is
http://googleajaxsearchapi.blogspot.com/2007/06/local-search-control-...
Jeremy R. Geerdes
Effective Website Design & Development
Des Moines, IA
For more information or a project quote:http://jgeerdes.home.mchsi.com
jgeerdes
2007-08-11 11:44:02 UTC
Permalink
Sorry. I didn't realize Google hadn't pointed out the various options
to activate these things. Here's what you do:

Find the options var in the wizard's code (it starts with "var options
= {" and proceeds through a closing "}"). By default, the last line
will be something like "activeMapZoom :
GSmapSearchControl.ACTIVE_MAP_ZOOM". You want to MODIFY this line by
adding a comma (,) to the end, and then ADD the following:

showResultsList : true

If you want to include the hotspots list that's also included on this
page, you'll need to add another comma (,) at the end of that line,
and then ADD this:

hotspots : true

If you want to see it working (along with several more modifications
to the default GSmapSearchControl), check out my site at the link
below:

http://jgeerdes.home.mchsi.com/playground/GSmapSearchControl.html

Jeremy R. Geerdes
Effective Website Design & Development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
***@mchsi.com

Continue reading on narkive:
Loading...